subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bre...@apache.org
Subject svn commit: r1492189 - /subversion/trunk/tools/server-side/svnpubsub/svnpubsub/client.py
Date Wed, 12 Jun 2013 13:29:57 GMT
Author: breser
Date: Wed Jun 12 13:29:57 2013
New Revision: 1492189

URL: http://svn.apache.org/r1492189
Log:
Allow https use with svnpubsub client.

The server doesn't have support for https, but you can proxy it.

* tools/server-side/svnpubsub/svnpubsub/client.py
  (Client.__init__): Accept http and https.

Found by: pctony

Modified:
    subversion/trunk/tools/server-side/svnpubsub/svnpubsub/client.py

Modified: subversion/trunk/tools/server-side/svnpubsub/svnpubsub/client.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/server-side/svnpubsub/svnpubsub/client.py?rev=1492189&r1=1492188&r2=1492189&view=diff
==============================================================================
--- subversion/trunk/tools/server-side/svnpubsub/svnpubsub/client.py (original)
+++ subversion/trunk/tools/server-side/svnpubsub/svnpubsub/client.py Wed Jun 12 13:29:57 2013
@@ -71,8 +71,8 @@ class Client(asynchat.async_chat):
 
     self.url = url
     parsed_url = urlparse.urlsplit(url)
-    if parsed_url.scheme != 'http':
-      raise ValueError("URL scheme must be http: '%s'" % url)
+    if parsed_url.scheme != 'http' and parsed.url_scheme != 'https':
+      raise ValueError("URL scheme must be http or https: '%s'" % url)
     host = parsed_url.hostname
     port = parsed_url.port
     resource = parsed_url.path



Mime
View raw message