curl_get_line: allow last line without newline char

improve backwards compatibility

Test 3200 verifies

Closes #9973
This commit is contained in:
Rob de Wit 2022-11-23 14:56:39 +01:00 committed by Daniel Stenberg
parent 73d6f41489
commit 73c4f9696a
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 220 additions and 5 deletions

View file

@ -250,4 +250,5 @@ test3008 test3009 test3010 test3011 test3012 test3013 test3014 test3015 \
test3016 test3017 test3018 test3019 test3020 test3021 test3022 test3023 \
test3024 test3025 test3026 test3027 test3028 \
\
test3100 test3101
test3100 test3101 \
test3200

22
tests/data/test3200 Normal file
View file

@ -0,0 +1,22 @@
<testcase>
<info>
<keywords>
unittest
curl_get_line
</keywords>
</info>
#
# Client-side
<client>
<server>
none
</server>
<features>
unittest
</features>
<name>
curl_get_line unit tests
</name>
</client>
</testcase>