aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-02-04 23:37:29 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-04-04 17:03:43 +0200
commitef6be35bae1fe501fecd9a2a21eb5d03ddff4243 (patch)
treebb92bc620a0d852ed0084c353780763ee3fa73a2 /tests/libtest
parentac887eedbc17a0d78b11ff467858c76a5127d1f4 (diff)
CURLOPT_HEADEROPT: added
Modified the logic so that CURLOPT_HEADEROPT now controls if PROXYHEADER is actually used or not.
Diffstat (limited to 'tests/libtest')
-rw-r--r--tests/libtest/lib1525.c3
-rw-r--r--tests/libtest/lib1526.c1
2 files changed, 3 insertions, 1 deletions
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);