[Tkabber-dev] [tclxmpp commit] r98 - * xmpp/poll.tcl: Do not send Proxy-Authorization header if username

codesite-noreply at google.com codesite-noreply at google.com
Mon Mar 30 20:38:16 MSD 2009


Author: sgolovan
Date: Mon Mar 30 09:24:35 2009
New Revision: 98

Modified:
    trunk/ChangeLog
    trunk/xmpp/poll.tcl

Log:
	* xmpp/poll.tcl: Do not send Proxy-Authorization header if username
	  and password are empty.


Modified: trunk/ChangeLog
==============================================================================
--- trunk/ChangeLog	(original)
+++ trunk/ChangeLog	Mon Mar 30 09:24:35 2009
@@ -1,3 +1,8 @@
+2009-03-30  Sergei Golovan  <sgolovan at nes.ru>
+
+	* xmpp/poll.tcl: Do not send Proxy-Authorization header if username
+	  and password are empty.
+
  2009-03-29  Sergei Golovan  <sgolovan at nes.ru>

  	* xmpp/pconnect.tcl, xmpp/https.tcl, xmpp/socks4.tcl, xmpp/socks5.tcl:

Modified: trunk/xmpp/poll.tcl
==============================================================================
--- trunk/xmpp/poll.tcl	(original)
+++ trunk/xmpp/poll.tcl	Mon Mar 30 09:24:35 2009
@@ -177,7 +177,9 @@
          ::http::config -proxyhost $proxyHost -proxyport $proxyPort
      }

-    if {[info exists proxyUsername] && [info exists proxyPassword]} {
+    if {[info exists proxyUsername] && [info exists proxyPassword] && \
+            !([string equal $proxyUsername ""] && \
+              [string equal $proxyPassword ""])} {
          set auth \
              [base64::encode \
                      [encoding convertto $proxyUsername:$proxyPassword]]


More information about the Tkabber-dev mailing list