pretransfer: setup the User-Agent header here 59/266659/1 accepted/tizen/base/20211121.213041 submit/tizen_base/20211118.011723
authorSeonah Moon <seonah1.moon@samsung.com>
Wed, 17 Nov 2021 03:08:41 +0000 (12:08 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Wed, 17 Nov 2021 03:08:43 +0000 (12:08 +0900)
commite663816381900eb14fbf477b244c11b3188d99e2
tree4bcc663498cb9d0565964473a61d1d6ccbbfe0f1
parent3cb6cb9788bae20d57247caf9da706febfd45b4a
 pretransfer: setup the User-Agent header here

... and not in the connection setup, as for multiplexed transfers the
connection setup might be skipped and then the transfer would end up
without the set user-agent!

Reported-by: Flameborn on github
Assisted-by: Andrey Gursky
Assisted-by: Jay Satiro
Assisted-by: Mike Gelfand
Fixes #6312
Closes #6417

https://github.com/curl/curl/issues/6312
https://github.com/curl/curl/pull/6417

Change-Id: I91d196cf08bd96c0534621ad7eae9eb73a004f21
lib/transfer.c
lib/url.c
packaging/curl.spec