Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

switched default logic to match __init__

  • Loading branch information...
commit 256836fad5cb70bbb82bf3dad55656a7bc38179e 1 parent ee915e4
@jeads jeads authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 dzclient/client.py
View
6 dzclient/client.py
@@ -193,10 +193,10 @@ def send(self, dataset):
header = {'Content-type': 'application/x-www-form-urlencoded'}
conn = None
- if self.protocol == 'https':
- conn = httplib.HTTPSConnection(self.host)
- else:
+ if self.protocol == 'http':
conn = httplib.HTTPConnection(self.host)
+ else:
+ conn = httplib.HTTPSConnection(self.host)
conn.request("POST", path, req.to_postdata(), header)
return conn.getresponse()
Please sign in to comment.
Something went wrong with that request. Please try again.