]> git.ipfire.org Git - thirdparty/curl.git/commit
lib: move mimepost data from ->req.p.http to ->state
authorDaniel Stenberg <daniel@haxx.se>
Wed, 16 Aug 2023 08:43:02 +0000 (10:43 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 17 Aug 2023 21:49:57 +0000 (23:49 +0200)
commit74b87a8af13a155c659227f5acfa78243a8b2aa6
treedf5b4fbf371633d3d2afac72ac240b27ac3a6274
parent821d108fc9adfb70faf9bc7c31b7e8d028188de6
lib: move mimepost data from ->req.p.http to ->state

When the legacy CURLOPT_HTTPPOST option is used, it gets converted into
the modem mimpost struct at first use. This data is (now) kept for the
entire transfer and not only per single HTTP request. This re-enables
rewind in the beginning of the second request instead of in end of the
first, as brought by 1b39731.

The request struct is per-request data only.

Extend test 650 to verify.

Fixes #11680
Reported-by: yushicheng7788 on github
Closes #11682
lib/http.c
lib/http.h
lib/mime.c
lib/multi.c
lib/setopt.c
lib/url.c
lib/urldata.h
tests/data/test650
tests/libtest/lib650.c