mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
retry request: only access the HTTP data if in fact HTTP
When figuring out if the data stream needs to be rewound when the request is to be resent, we must not access the HTTP struct unless the protocol used is indeed HTTP... Bug: http://curl.haxx.se/bug/view.cgi?id=3544688
This commit is contained in:
parent
013d043d22
commit
f0d611df9e
@ -2060,7 +2060,9 @@ CURLcode Curl_retry_request(struct connectdata *conn,
|
|||||||
error just because nothing has been
|
error just because nothing has been
|
||||||
transferred! */
|
transferred! */
|
||||||
|
|
||||||
if(data->state.proto.http->writebytecount)
|
|
||||||
|
if((conn->handler->protocol&CURLPROTO_HTTP) &&
|
||||||
|
data->state.proto.http->writebytecount)
|
||||||
return Curl_readrewind(conn);
|
return Curl_readrewind(conn);
|
||||||
}
|
}
|
||||||
return CURLE_OK;
|
return CURLE_OK;
|
||||||
|
Loading…
Reference in New Issue
Block a user