[prev in list] [next in list] [prev in thread] [next in thread] 

List:       konq-bugs
Subject:    [Bug 119210] Proxy-Connection header sent when proxy not used
From:       Thiago Macieira <thiago () kde ! org>
Date:       2005-12-30 2:00:58
Message-ID: 20051230020058.10201.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=119210         
thiago kde org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From thiago kde org  2005-12-30 03:00 -------
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" )
     {
_______________________________________________
Konq-bugs mailing list
Konq-bugs@mail.kde.org
https://mail.kde.org/mailman/listinfo/konq-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic