1
0
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:
Eli Zaretskii 2015-12-17 15:27:43 +01:00 committed by Tim Rühsen
parent bf5d7e9236
commit 93c1517c40

View File

@ -872,9 +872,11 @@ retrieve_url (struct url * orig_parsed, const char *origurl, char **file,
xfree (mynewloc);
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. */
iri->utf8_encode = opt.enable_iri;
if (opt.encoding_remote)
set_uri_encoding (iri, opt.encoding_remote, true);
set_content_encoding (iri, NULL);
xfree (iri->orig_url);