Skip to content

Make wget_iri_set_scheme() update iri->uri

Akash Rawal requested to merge tmp-akash_rawal-fix_iri_set_scheme into master
  • include/wget/wget.h (wget_iri_st): Add field uri_allocated
  • libwget/iri.c: Make wget_iri_set_scheme() update iri->uri

This fixes issue #243 (closed).

$ ./wget2 http://facebook.com
HSTS in effect for facebook.com:80
[0] Downloading 'https://facebook.com' ...
HTTP response 301  [https://facebook.com]
[0] Downloading 'https://www.facebook.com/' ...
HTTP response 302  [https://www.facebook.com/]
[0] Downloading 'https://www.facebook.com/unsupportedbrowser' ...
Saving 'index.html'
HTTP response 200  [https://www.facebook.com/unsupportedbrowser]

Merge request reports