]> git.saurik.com Git - apt.git/blobdiff - methods/http.h
cherry pick 2217.1.26 (cppcheck fixes)
[apt.git] / methods / http.h
index c73d4df5ca5252d159ce7fd9c03ddcbc25b80f64..5c195de6431ee7c23ba7597374e8e1a9f621b1ee 100644 (file)
@@ -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 {