diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2012-03-13 14:03:42 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2012-03-13 14:03:42 +0100 |
commit | 86a3007a2211d18444e1a0080e9c645c77d84008 (patch) | |
tree | f346f330efda8696b97fafc2e8b0744748de66b7 /methods/http.h | |
parent | af20242585a0b4880484c5559edb7d14962918ce (diff) | |
parent | c872b88e8254304dc1f6f1ee421cfbf9c1d0643e (diff) |
cherry pick a bunch of packagemanager.cc ordering fixes
Diffstat (limited to 'methods/http.h')
-rw-r--r-- | methods/http.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/methods/http.h b/methods/http.h index c73d4df5c..5c195de64 100644 --- a/methods/http.h +++ b/methods/http.h @@ -117,9 +117,10 @@ struct ServerState bool HeaderLine(std::string Line); bool Comp(URI Other) const {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; - Pipeline = true;}; + void Reset() {Major = 0; Minor = 0; Result = 0; Code[0] = '\0'; Size = 0; + StartPos = 0; Encoding = Closes; time(&Date); HaveContent = false; + State = Header; Persistent = false; ServerFd = -1; + Pipeline = true;}; /** \brief Result of the header acquire */ enum RunHeadersResult { |