aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/lib1527.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-04-23 15:58:21 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-04-28 21:02:37 +0200
commit6ba2e88a642434bd0ffa95465e4a7d034d03ea10 (patch)
tree82958caeabc8de706f5d3ffd0811e5c13e9e1c07 /tests/libtest/lib1527.c
parent1f8a337e41b436bd763ebe57702ce03996359952 (diff)
CURLOPT_HEADEROPT: default to separate
Make the HTTP headers separated by default for improved security and reduced risk for information leakage. Bug: http://curl.haxx.se/docs/adv_20150429.html Reported-by: Yehezkel Horowitz, Oren Souroujon
Diffstat (limited to 'tests/libtest/lib1527.c')
-rw-r--r--tests/libtest/lib1527.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/libtest/lib1527.c b/tests/libtest/lib1527.c
index 280c947e3..1122d8ec0 100644
--- a/tests/libtest/lib1527.c
+++ b/tests/libtest/lib1527.c
@@ -83,6 +83,7 @@ int test(char *URL)
test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
test_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, 1L);
test_setopt(curl, CURLOPT_INFILESIZE, strlen(data));
+ test_setopt(curl, CURLOPT_HEADEROPT, CURLHEADER_UNIFIED);
res = curl_easy_perform(curl);