mirror of
https://github.com/lwthiker/curl-impersonate.git
synced 2025-08-08 04:42:26 +00:00

When reusing a curl handle on which the 'Host' header was explicitly set, the previously-set header was being kept in use for following requests. The issue was in curl-impersonate's merging of user-supplied headers with its own list of browser headers. The call to Curl_http_merge_headers() which takes care of this had been placed after the handling of the host header, which caused the previous one to be used.