mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Set URI encoding when redirected
* src/retr.c (retrieve_url): Set URI on redirection
This commit is contained in:
parent
bf5d7e9236
commit
93c1517c40
@ -872,9 +872,11 @@ retrieve_url (struct url * orig_parsed, const char *origurl, char **file,
|
|||||||
xfree (mynewloc);
|
xfree (mynewloc);
|
||||||
mynewloc = construced_newloc;
|
mynewloc = construced_newloc;
|
||||||
|
|
||||||
/* Reset UTF-8 encoding state, keep the URI encoding and reset
|
/* Reset UTF-8 encoding state, set the URI encoding and reset
|
||||||
the content encoding. */
|
the content encoding. */
|
||||||
iri->utf8_encode = opt.enable_iri;
|
iri->utf8_encode = opt.enable_iri;
|
||||||
|
if (opt.encoding_remote)
|
||||||
|
set_uri_encoding (iri, opt.encoding_remote, true);
|
||||||
set_content_encoding (iri, NULL);
|
set_content_encoding (iri, NULL);
|
||||||
xfree (iri->orig_url);
|
xfree (iri->orig_url);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user