In case of getting Connection: close during http/1.1 response - don't

record the capabilities of such server.
This commit is contained in:
ruslan%netscape.com 2000-04-13 21:19:27 +00:00
Родитель f99f2a27a9
Коммит e5e920f65e
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);