Loading lib/transfer.c +15 −7 Original line number Original line Diff line number Diff line Loading @@ -424,14 +424,22 @@ CURLcode Curl_readwrite(struct connectdata *conn, server keeps it open for us! */ server keeps it open for us! */ conn->bits.close = TRUE; conn->bits.close = TRUE; if (k->httpcode == 304) switch(k->httpcode) { /* (quote from RFC2616, section 10.3.5): case 204: * The 304 response MUST NOT contain a /* (quote from RFC2616, section 10.2.5): The server has * message-body, and thus is always * fulfilled the request but does not need to return an * terminated by the first empty line * entity-body ... The 204 response MUST NOT include a * after the header fields. * message-body, and thus is always terminated by the first */ * empty line after the header fields. */ /* FALLTHROUGH */ case 304: /* (quote from RFC2616, section 10.3.5): The 304 response MUST * NOT contain a message-body, and thus is always terminated * by the first empty line after the header fields. */ conn->size=0; conn->size=0; default: /* nothing */ } } } else { else { k->header = FALSE; /* this is not a header line */ k->header = FALSE; /* this is not a header line */ Loading Loading
lib/transfer.c +15 −7 Original line number Original line Diff line number Diff line Loading @@ -424,14 +424,22 @@ CURLcode Curl_readwrite(struct connectdata *conn, server keeps it open for us! */ server keeps it open for us! */ conn->bits.close = TRUE; conn->bits.close = TRUE; if (k->httpcode == 304) switch(k->httpcode) { /* (quote from RFC2616, section 10.3.5): case 204: * The 304 response MUST NOT contain a /* (quote from RFC2616, section 10.2.5): The server has * message-body, and thus is always * fulfilled the request but does not need to return an * terminated by the first empty line * entity-body ... The 204 response MUST NOT include a * after the header fields. * message-body, and thus is always terminated by the first */ * empty line after the header fields. */ /* FALLTHROUGH */ case 304: /* (quote from RFC2616, section 10.3.5): The 304 response MUST * NOT contain a message-body, and thus is always terminated * by the first empty line after the header fields. */ conn->size=0; conn->size=0; default: /* nothing */ } } } else { else { k->header = FALSE; /* this is not a header line */ k->header = FALSE; /* this is not a header line */ Loading