URL parser: cut off '#' fragments from URLs (better)

The existing logic only cut off the fragment from the separate 'path'
buffer which is used when sending HTTP to hosts. The buffer that held
the full URL used for proxies were not dealt with. It is now.

Test case 5 was updated to use a fragment on a URL over a proxy.

Bug: http://curl.haxx.se/bug/view.cgi?id=3579813
This commit is contained in:
Daniel Stenberg
2012-11-06 23:17:57 +01:00
parent 3f20303702
commit 473003fbdf
2 changed files with 10 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ http
HTTP over proxy
</name>
<command>
http://%HOSTIP:%HTTPPORT/we/want/that/page/5 -x %HOSTIP:%HTTPPORT
http://%HOSTIP:%HTTPPORT/we/want/that/page/5#5 -x %HOSTIP:%HTTPPORT
</command>
</client>