From 92e889c8856ce16f58cf6aefb7f11f0ff189be29 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:51:17 +0000 Subject: HTTP bugs Author: jgg Date: 1998-11-01 08:07:11 GMT HTTP bugs --- methods/http.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'methods/http.h') diff --git a/methods/http.h b/methods/http.h index d231aa1f1..962fb0027 100644 --- a/methods/http.h +++ b/methods/http.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: http.h,v 1.1 1998/11/01 05:30:47 jgg Exp $ +// $Id: http.h,v 1.2 1998/11/01 08:07:14 jgg Exp $ /* ###################################################################### HTTP Aquire Method - This is the HTTP aquire method for APT. @@ -81,10 +81,11 @@ struct ServerState unsigned int Result; char Code[MAXLEN]; - // These are some statistics from the last parsed get line + // These are some statistics from the last parsed header lines unsigned long Size; signed long StartPos; time_t Date; + bool HaveContent; enum {Chunked,Stream,Closes} Encoding; enum {Header, Data} State; @@ -100,7 +101,7 @@ struct ServerState bool Comp(URI Other) {return Other.Host == ServerName.Host && Other.Port == ServerName.Port;}; void Reset() {Major = 0; Minor = 0; Result = 0; Size = 0; StartPos = 0; Encoding = Closes; time(&Date); ServerFd = -1;}; - bool RunHeaders(); + int RunHeaders(); bool RunData(); bool Open(); @@ -121,7 +122,6 @@ class HttpMethod : public pkgAcqMethod public: friend ServerState; - ServerState *Srv; int Depth; FileFd *File; @@ -130,7 +130,6 @@ class HttpMethod : public pkgAcqMethod HttpMethod() : pkgAcqMethod("1.2",SingleInstance | Pipeline | SendConfig) { Depth = 0; - Srv = 0; File = 0; Depth = 0; }; -- cgit v1.2.3