diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2008-09-05 17:58:53 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2008-09-05 17:58:53 +0000 |
commit | 91ff93803512e3438ce165b23bb5b9fb404df288 (patch) | |
tree | 0fbc0009c6237d62fa4a4033ad69038a639522c3 /lib/url.c | |
parent | 3acd1146f992a2b8c5da22a425c1380673c5bdef (diff) |
Improved the logic the decides whether to use HTTP 1.1 features or not in a
request.
Detect cases where an upload must be sent chunked and the server supports
only HTTP 1.0 and return CURLE_UPLOAD_FAILED.
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4689,7 +4689,8 @@ CURLcode Curl_done(struct connectdata **connp, * do_init() inits the readwrite session. This is inited each time (in the DO * function before the protocol-specific DO functions are invoked) for a * transfer, sometimes multiple times on the same SessionHandle. Make sure - * nothing in here depends on stuff that are setup dynamicly for the transfer. + * nothing in here depends on stuff that are setup dynamically for the + * transfer. */ static CURLcode do_init(struct connectdata *conn) @@ -4706,7 +4707,6 @@ static CURLcode do_init(struct connectdata *conn) k->start = Curl_tvnow(); /* start time */ k->now = k->start; /* current time is now */ k->header = TRUE; /* assume header */ - k->httpversion = -1; /* unknown at this point */ k->bytecount = 0; |