retry-request: rewind if data was sent
authorDaniel Stenberg <daniel@haxx.se>
Sun, 20 Mar 2011 22:24:45 +0000 (23:24 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 20 Mar 2011 22:24:45 +0000 (23:24 +0100)
commit058fb3355715747e754ede5395c52390ec3394be
tree4c02db43b485f072439eabac7515b74d6b702edd
parent0355e33b5f7b234cf3ddd7d9deef0e8616e177ce
retry-request: rewind if data was sent

When libcurl sends a HTTP request on a re-used connection and detects it
being closed (ie no data at all was read from it), it is important to
rewind if any data in the request was sent using the read callback or
was read from file, as otherwise the retried request will be broken.

Reported by: Chris Smowton
Bug: http://curl.haxx.se/bug/view.cgi?id=3195205
lib/transfer.c