diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
index 7faa27da35..8da9a55a71 100644
--- a/tests/data/Makefile.am
+++ b/tests/data/Makefile.am
@@ -112,8 +112,7 @@ test754 test755 test756 test757 test758 test759 test760 test761 test762 \
test763 test764 test765 test766 test767 test768 test769 test770 test771 \
test772 test773 test774 test775 test776 test777 test778 test779 test780 \
test781 test782 test783 test784 test785 test786 test787 test788 test789 \
-test790 test791 test792 test793 test794 test795 test796 test797 \
-\
+test790 test791 test792 test793 test794 test795 test796 test797 test798 \
test799 test800 test801 test802 test803 test804 test805 test806 test807 \
test808 test809 test810 test811 test812 test813 test814 test815 test816 \
test817 test818 test819 test820 test821 test822 test823 test824 test825 \
@@ -221,7 +220,7 @@ test1630 test1631 test1632 test1633 test1634 test1635 \
\
test1650 test1651 test1652 test1653 test1654 test1655 test1656 test1657 \
test1658 \
-test1660 test1661 test1662 test1663 test1664 \
+test1660 test1661 test1662 test1663 test1664 test1665 \
\
test1670 test1671 \
\
diff --git a/tests/data/test1665 b/tests/data/test1665
new file mode 100644
index 0000000000..24083582b4
--- /dev/null
+++ b/tests/data/test1665
@@ -0,0 +1,53 @@
+
+
+
+HTTP
+
+
+
+#
+# Server-side
+
+
+HTTP/1.1 200 OK
+Date: Tue, 09 Nov 2010 14:49:00 GMT
+Server: test-server/fake
+Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
+ETag: "21025-dc7-39462498"
+Accept-Ranges: bytes
+Content-Length: 6
+Connection: close
+Content-Type: text/html
+Funny-head: swsclose
+
+
+
+#
+# Client-side
+
+
+http
+
+
+HTTP with only headers and no final CRLF separator
+
+
+http://%HOSTIP:%HTTPPORT/%TESTNUMBER
+
+
+
+#
+# Verify data after the test has been "shot"
+
+
+GET /%TESTNUMBER HTTP/1.1
+Host: %HOSTIP:%HTTPPORT
+User-Agent: curl/%VERSION
+Accept: */*
+
+
+
+18
+
+
+
diff --git a/tests/data/test798 b/tests/data/test798
new file mode 100644
index 0000000000..07f44fea2a
--- /dev/null
+++ b/tests/data/test798
@@ -0,0 +1,61 @@
+
+
+
+HTTP
+HTTP GET
+cookies
+cookiejar
+
+
+# Server-side
+#
+
+
+
+HTTP/1.1 200 OK
+Content-Length: 4
+Set-Cookie: flavor=tasty;
+ domain=localhost;
+ path=/p4/;
+ httponly;
+ secure
+
+boo
+
+
+
+# Client-side
+
+
+http
+
+
+HTTP cookies in a folded header
+
+
+http://localhost:%HTTPPORT/we/want/%TESTNUMBER -b none -c %LOGDIR/jar%TESTNUMBER.txt
+
+
+cookies
+local-http
+
+
+
+# Verify data after the test has been "shot"
+
+
+GET /we/want/%TESTNUMBER HTTP/1.1
+Host: localhost:%HTTPPORT
+User-Agent: curl/%VERSION
+Accept: */*
+
+
+
+# Netscape HTTP Cookie File
+# https://curl.se/docs/http-cookies.html
+# This file was generated by libcurl! Edit at your own risk.
+
+#HttpOnly_.localhost TRUE /p4 TRUE 0 flavor tasty
+
+
+