URL parser: cut off '#' fragments from URLs (better)
authorDaniel Stenberg <daniel@haxx.se>
Tue, 6 Nov 2012 22:17:57 +0000 (23:17 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 6 Nov 2012 22:17:57 +0000 (23:17 +0100)
commit473003fbdffc4a36e69d396e5164308e3800011d
tree6a495ceaff032f32261f6bacaf37cbb80659ea61
parent3f203037021d2f656249565e81cf0f4aa93060e9
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
lib/url.c
tests/data/test5