]> granicus.if.org Git - curl/commit
url: Fix NO_PROXY env var to work properly with --proxy option.
authorERAMOTO Masaya <eramoto.masaya@jp.fujitsu.com>
Fri, 25 Nov 2016 04:26:51 +0000 (13:26 +0900)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 13 Jan 2017 10:18:11 +0000 (11:18 +0100)
commit1b57557882891285ff53c243bb4ede8b1ccac79c
tree3f4c861cd8d8380eac8d0ea0da35529ed30b44da
parentf30cbcac11f5a627992f0c48cff91135808fa70f
url: Fix NO_PROXY env var to work properly with --proxy option.

The combination of --noproxy option and http_proxy env var works well
both for proxied hosts and non-proxied hosts.

However, when combining NO_PROXY env var with --proxy option,
non-proxied hosts are not reachable while proxied host is OK.

This patch allows us to access non-proxied hosts even if using NO_PROXY
env var with --proxy option.
lib/url.c
tests/data/Makefile.inc
tests/data/test1248 [new file with mode: 0644]
tests/data/test1249 [new file with mode: 0644]
tests/data/test1250 [new file with mode: 0644]
tests/data/test1251 [new file with mode: 0644]