diff options
-rw-r--r-- | lib/transfer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index d6fc93445..73456ec3e 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -2060,7 +2060,9 @@ CURLcode Curl_retry_request(struct connectdata *conn, error just because nothing has been transferred! */ - if(data->state.proto.http->writebytecount) + + if((conn->handler->protocol&CURLPROTO_HTTP) && + data->state.proto.http->writebytecount) return Curl_readrewind(conn); } return CURLE_OK; |