Skip to content

http: resource: drain reply payload on redirection/error

François Cartegnie requested to merge fcartegnie/vlc:mr070901 into master

Payload is not read for non 200 replies to disconnect faster.

This prevents proper reuse of connections, and also creates bogus replies on 401 Authentification where previous payload is merged with auth reply headers.

[00007f6e98182488] http generic debug: incoming response:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Unauthorized</title>
</head><body>
<h1>Unauthorized</h1>
<p>This server could not verify that you
are authorized to access the document
requested.  Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
</body></html>
HTTP/1.1 206 Partial Content
Date: Fri, 03 Sep 2021 14:14:04 GMT
Server: Apache/2.4.48 (Fedora) OpenSSL/1.1.1k
Last-Modified: Wed, 19 Jul 2017 15:46:20 GMT
ETag: "df-554ad88844b00"
Accept-Ranges: bytes
Content-Length: 223
Vary: Accept-Encoding
Content-Range: bytes 0-222/223
Content-Type: application/vnd.apple.mpegurl

Merge request reports