aboutsummaryrefslogtreecommitdiff
path: root/lib/transfer.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-04-08 16:59:13 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-04-08 16:59:13 +0000
commitfb3c85ab2f6353985b5a3b4252e18b8398d095eb (patch)
treea512ced50dba24b8bba47668aca2d355df3c8fa9 /lib/transfer.c
parenta9b7c3531ca07ea7faec636fd76a56d73645e62c (diff)
fixed the 304 response-with-content-length problem reported by Cory Nelson
Diffstat (limited to 'lib/transfer.c')
-rw-r--r--lib/transfer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index a8858f173..aa4e385d1 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -697,6 +697,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
* fields. */
conn->size=0;
conn->maxdownload=0;
+ k->ignorecl = TRUE; /* ignore Content-Length headers */
break;
default:
/* nothing */
@@ -713,7 +714,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
the header completely if we get a 416 response as then we're
resuming a document that we don't get, and this header contains
info about the true size of the document we didn't get now. */
- if ((k->httpcode != 416) &&
+ if (!k->ignorecl &&
checkprefix("Content-Length:", k->p)) {
contentlength = curlx_strtoofft(k->p+15, NULL, 10);
if (data->set.max_filesize &&