Commit 265c5861 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

When we receive a "bad header" we must sure not to write down the data part

as well, as then we write the same data twice.
parent 25c973a3
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -817,7 +817,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
                                       k->hbuflen);
            k->badheader = FALSE; /* taken care of now */
          }

          else {
            /* This switch handles various content encodings. If there's an
               error here, be sure to check over the almost identical code in
               http_chunk.c. 08/29/02 jhrg */
@@ -849,6 +849,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
              break;
            }
#endif
          }

          if(result)
            return result;