Commit 31e9f137 authored by 's avatar

Merged fix for HTTP().connect() arguments accidentally turned into a tuple

from 2.2 branch
parent d6366ee6
......@@ -103,7 +103,7 @@ that allows one to simply make a single web request.
The module also provides a command-line interface for calling objects.
"""
__version__='$Revision: 1.36 $'[11:-2]
__version__='$Revision: 1.37 $'[11:-2]
import sys, regex, socket, mimetools
from httplib import HTTP
......@@ -209,7 +209,7 @@ class Function:
try:
h=HTTP()
h.connect((self.host, self.port))
h.connect(self.host, self.port)
h.putrequest(method, self.rurl)
for hn,hv in headers.items():
h.putheader(translate(hn,dashtrans),hv)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment