diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/test1525 | 2 | ||||
-rw-r--r-- | tests/libtest/lib1525.c | 3 | ||||
-rw-r--r-- | tests/libtest/lib1526.c | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/tests/data/test1525 b/tests/data/test1525 index 13e0d1489..0560d5c1a 100644 --- a/tests/data/test1525 +++ b/tests/data/test1525 @@ -46,7 +46,7 @@ http-proxy lib1525 </tool> <name> -CURLOPT_PROXYHEADER: same headers for host and proxy +CURLOPT_PROXYHEADER is ignored CURLHEADER_UNIFIED </name> <command> http://the.old.moo.1525:%HTTPPORT/1525 %HOSTIP:%PROXYPORT diff --git a/tests/libtest/lib1525.c b/tests/libtest/lib1525.c index 45e914e69..957b4295e 100644 --- a/tests/libtest/lib1525.c +++ b/tests/libtest/lib1525.c @@ -71,7 +71,8 @@ int test(char *URL) test_setopt(curl, CURLOPT_URL, URL); test_setopt(curl, CURLOPT_PROXY, libtest_arg2); test_setopt(curl, CURLOPT_HTTPHEADER, hhl); - test_setopt(curl, CURLOPT_PROXYHEADER, NULL); + test_setopt(curl, CURLOPT_PROXYHEADER, hhl); + test_setopt(curl, CURLOPT_HEADEROPT, CURLHEADER_UNIFIED); test_setopt(curl, CURLOPT_POST, 0L); test_setopt(curl, CURLOPT_UPLOAD, 1L); test_setopt(curl, CURLOPT_VERBOSE, 1L); diff --git a/tests/libtest/lib1526.c b/tests/libtest/lib1526.c index e71512854..fb757f592 100644 --- a/tests/libtest/lib1526.c +++ b/tests/libtest/lib1526.c @@ -72,6 +72,7 @@ int test(char *URL) test_setopt(curl, CURLOPT_PROXY, libtest_arg2); test_setopt(curl, CURLOPT_HTTPHEADER, hhl); test_setopt(curl, CURLOPT_PROXYHEADER, phl); + test_setopt(curl, CURLOPT_HEADEROPT, CURLHEADER_SEPARATE); test_setopt(curl, CURLOPT_POST, 0L); test_setopt(curl, CURLOPT_UPLOAD, 1L); test_setopt(curl, CURLOPT_VERBOSE, 1L); |