]> git.ipfire.org Git - thirdparty/curl.git/commit
transfer: close connection after excess data has been read
authorMichael Kaufmann <mail@michael-kaufmann.ch>
Thu, 21 May 2020 11:10:04 +0000 (13:10 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 27 May 2020 06:16:35 +0000 (08:16 +0200)
commit3d44bfb08d4b230d2ad8b111469a8ae4c6957bca
tree1e42f4a2a6f1a47f0a530458a11d9a82b3436d8f
parent18e63b1679248c9a884201871379bfd0b13fc3f3
transfer: close connection after excess data has been read

For HTTP 1.x, it's a protocol error when the server sends more bytes
than announced. If this happens, don't reuse the connection, because the
start position of the next response is undefined.

Closes #5440
lib/transfer.c