From kde-commits Fri Dec 30 02:36:27 2005 From: Dawit Alemayehu Date: Fri, 30 Dec 2005 02:36:27 +0000 To: kde-commits Subject: Re: branches/KDE/3.5/kdelibs/kioslave/http Message-Id: <200512292136.27635.adawit () kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=113591023911790 Who added the "Proxy-Connection" request header ? There is no such header specified in RFC 2616. "Proxy-Connection" is strictly a response header! From the client persistency should always be specified through the "Connection: " header in HTTP/1.1 whether you are talking to a proxy or the target server. On Thursday 29 December 2005 21:00, Thiago Macieira wrote: > SVN commit 492490 by thiago: > > Only send the Proxy-Connection: header if we're talking to a proxy. > > BUG:119210 > > > M +5 -3 http.cc > > > --- branches/KDE/3.5/kdelibs/kioslave/http/http.cc #492489:492490 > @@ -2378,9 +2378,6 @@ > else > header += "Connection: close\r\n"; > > - if ( m_bPersistentProxyConnection ) > - header += "Proxy-Connection: Keep-Alive\r\n"; > - > if (!m_request.userAgent.isEmpty()) > { > header += "User-Agent: "; > @@ -2539,7 +2536,12 @@ > > // Do we need to authorize to the proxy server ? > if ( m_state.doProxy && !m_bIsTunneled ) > + { > + if ( m_bPersistentProxyConnection ) > + header += "Proxy-Connection: Keep-Alive\r\n"; > + > header += proxyAuthenticationHeader(); > + } > > if ( m_protocol == "webdav" || m_protocol == "webdavs" ) > { -- Regards, Dawit A. "Practice what you preach, preach what you practice"