]> git.ipfire.org Git - thirdparty/curl.git/commit
altsvc: fix parser for lines ending with CRLF
authorDaniel Stenberg <daniel@haxx.se>
Mon, 25 May 2020 06:31:08 +0000 (08:31 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 25 May 2020 21:05:27 +0000 (23:05 +0200)
commitd844f2b9ff50cfa7bf7f5b445d9f7eed7e6c3015
treea5f27cbc6044fbda72db97a033d0e53a340b4c18
parent308c243db5b7425b454a981d4c0eb7bfac374b8b
altsvc: fix parser for lines ending with CRLF

Fixed the alt-svc parser to treat a newline as end of line.

The unit tests in test 1654 were done without CRLF and thus didn't quite
match the real world. Now they use CRLF as well.

Reported-by: Peter Wu
Assisted-by: Peter Wu
Assisted-by: Jay Satiro
Fixes #5445
Closes #5446
lib/altsvc.c
tests/unit/unit1654.c