parse_remote_port: fix ;type= URL suffix over HTTP proxy
authorDaniel Stenberg <daniel@haxx.se>
Mon, 9 Aug 2010 22:56:45 +0000 (00:56 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 9 Aug 2010 22:56:45 +0000 (00:56 +0200)
commitdc2157a0878f3a140fac07b97687b3c3da42616b
treefe5702bfb29378088813f28da35f4b8a4e964490
parent5d5dd08e775732beec24a1041f8cb9b62e311188
parse_remote_port: fix ;type= URL suffix over HTTP proxy

Test 563 is enabled now and verifies that the combo FTP type=A URL,
CURLOPT_PORT set and proxy work fine. As a bonus I managed to remove the
somewhat odd FTP check in parse_remote_port() and instead converted it
to a better and more generic 'slash_removed' struct field. Checking the
->protocol field isn't right since when an FTP:// URL is sent over a
HTTP proxy, the protocol is HTTP but the URL was handled by the FTP code
and thus slash_removed is set TRUE for this case.
lib/ftp.c
lib/url.c
lib/urldata.h
tests/data/DISABLED
tests/data/test563