mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-15 13:09:14 +00:00
In case of getting Connection: close during http/1.1 response - don't
record the capabilities of such server.
This commit is contained in:
parent
4efaaa0831
commit
e30c647fbc
@ -653,7 +653,7 @@ nsHTTPServerListener::OnStopRequest (nsIChannel* channel, nsISupports* i_pContex
|
||||
{
|
||||
// ruslan: some older incorrect 1.1 servers may do this
|
||||
if (NS_SUCCEEDED (rv) && connectionHeader && !PL_strcasecmp (connectionHeader, "close" ))
|
||||
capabilities = 0;
|
||||
capabilities = nsIHTTPProtocolHandler::DONTRECORD_CAPABILITIES;
|
||||
else
|
||||
{
|
||||
capabilities = (usingProxy ? nsIHTTPProtocolHandler::ALLOW_PROXY_KEEPALIVE|nsIHTTPProtocolHandler::ALLOW_PROXY_PIPELINING : nsIHTTPProtocolHandler::ALLOW_KEEPALIVE|nsIHTTPProtocolHandler::ALLOW_PIPELINING);
|
||||
|
Loading…
x
Reference in New Issue
Block a user