Make wget_iri_set_scheme() update iri->uri
- 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]