]> git.ipfire.org Git - thirdparty/curl.git/commit
lib: rewind BEFORE request instead of AFTER previous
authorDaniel Stenberg <daniel@haxx.se>
Tue, 22 Nov 2022 07:25:50 +0000 (08:25 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 25 Nov 2022 07:30:26 +0000 (08:30 +0100)
commit1b3973180b6b7f1023240a67d3acdb11b534bf03
tree17be952a0a29f34d8fbcc4217aa67d1a868c66ef
parent9ecebb5d008305265f37b289ea928c7802df7f31
lib: rewind BEFORE request instead of AFTER previous

This makes a big difference for cases when the rewind is not actually
necessary to perofm (for example HTTP response code 301 converts to GET)
and therefore the rewind can be avoided. In particular for situations
when that rewind fails, for example when reading from a pipe or similar.

Reported-by: Ali Utku Selen
Fixes #9735
Closes #9958
lib/http.c
lib/http2.h
lib/http_proxy.c
lib/multi.c
lib/transfer.c
lib/transfer.h
lib/urldata.h