Revert "Merge remote-tracking branch 'working/user/berick/lp1409055-python-https...
authorDan Scott <dscott@laurentian.ca>
Fri, 19 Jun 2015 18:55:48 +0000 (14:55 -0400)
committerDan Scott <dscott@laurentian.ca>
Fri, 19 Jun 2015 18:55:48 +0000 (14:55 -0400)
This reverts commit 530220a8524bed925dacf63a92c6d8a7e4ca7652, reversing
changes made to a8ea7468ed180c7c4cc2da3511a61949312ee5bf.

src/python/osrf/gateway.py

index 8796ce2..eda1139 100644 (file)
@@ -50,18 +50,6 @@ class GatewayRequest:
     setDefaultHost = staticmethod(setDefaultHost)
 
     def buildURL(self):
-        """
-        Builds the URL for the OpenSRF gateway based on the host and path
-
-        Previous versions of the code assumed that the host would be a bare
-        hostname or IP address, and prepended the http:// protocol. However,
-        to enable more secure communications, now we check for the existence
-        of the HTTP or HTTPS prefix and use that if it has been supplied.
-        """
-
-        if defaultHost.lower().startswith(('http://', 'https://')):
-            return '%s/%s' % (defaultHost, self.path)
-
         return 'http://%s/%s' % (defaultHost, self.path)
 
 class JSONGatewayRequest(GatewayRequest):