Skip to content
Snippets Groups Projects
Commit cc618e76 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

- Bug report #1792649 (http://curl.haxx.se/bug/view.cgi?id=1792649) pointed

  out a problem with doing an empty upload over FTP on a re-used connection.
  I added test case 541 to reproduce it and to verify the fix.
parent 24db40de
No related branches found
No related tags found
No related merge requests found
......@@ -2368,6 +2368,11 @@ bool Curl_retry_request(struct connectdata *conn,
bool retry = FALSE;
struct SessionHandle *data = conn->data;
/* if we're talking upload, we can't do the checks below, unless the protocol
is HTTP as when uploading over HTTP we will still get a response */
if(data->set.upload && !(conn->protocol&PROT_HTTP))
return retry;
if((data->reqdata.keep.bytecount +
data->reqdata.keep.headerbytecount == 0) &&
conn->bits.reuse &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment