]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test434: test -K use in a single line without newline
authorDaniel Stenberg <daniel@haxx.se>
Sun, 13 Sep 2020 21:24:13 +0000 (23:24 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 14 Sep 2020 06:32:49 +0000 (08:32 +0200)
Closes #5946

tests/data/Makefile.inc
tests/data/test434 [new file with mode: 0644]

index 435964e4e1e68c4597ce62cd68782fd8474942e8..3832e26b4de80f0c624914daa1b50fb51b4d4b3c 100644 (file)
@@ -66,7 +66,7 @@ test393 test394 test395 test396 test397 \
 test400 test401 test402 test403 test404 test405 test406 test407 test408 \
 test409 \
 \
-test430 test431 test432 test433 \
+test430 test431 test432 test433 test434 \
 \
 test490 test491 test492 \
 \
diff --git a/tests/data/test434 b/tests/data/test434
new file mode 100644 (file)
index 0000000..2ab0fc1
--- /dev/null
@@ -0,0 +1,48 @@
+<testcase>
+
+<info>
+<keywords>
+--config
+</keywords>
+</info>
+
+#
+<reply>
+<data>
+HTTP/1.1 200 OK
+Content-Length: 6
+Content-Type: text/1
+
+-foo-
+</data>
+</reply>
+
+#
+<client>
+<file name="log/config434" nonewline="yes">
+url = %HOSTIP:%HTTPPORT/434
+</file>
+<server>
+http
+</server>
+<name>
+-K with a single line without newline
+</name>
+<command>
+-K log/config434
+</command>
+</client>
+
+#
+<verify>
+<strip>
+^User-Agent:.*
+</strip>
+<protocol>
+GET /434 HTTP/1.1\r
+Host: %HOSTIP:%HTTPPORT\r
+Accept: */*\r
+\r
+</protocol>
+</verify>
+</testcase>