mirror of
https://github.com/curl/curl.git
synced 2026-08-25 15:03:32 +03:00
http: get CURLOPT_REQUEST_TARGET working with a HTTP proxy
Added test 1613 to verify. Closes #6490
This commit is contained in:
parent
86a95eb076
commit
0015e06151
3 changed files with 57 additions and 3 deletions
|
|
@ -2177,8 +2177,9 @@ CURLcode Curl_http_target(struct Curl_easy *data,
|
|||
|
||||
curl_url_cleanup(h);
|
||||
|
||||
/* url */
|
||||
result = Curl_dyn_add(r, url);
|
||||
/* target or url */
|
||||
result = Curl_dyn_add(r, data->set.str[STRING_TARGET]?
|
||||
data->set.str[STRING_TARGET]:url);
|
||||
free(url);
|
||||
if(result)
|
||||
return (result);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue