--- post-review-old 2007-12-25 21:01:12.000000000 -0700
+++ post-review-new 2007-12-25 21:01:59.000000000 -0700
@@ -1,5 +1,6 @@
#!/usr/bin/env python
+
import cookielib
import httplib
import mimetools
@@ -28,7 +29,7 @@
cj = cookielib.MozillaCookieJar()
cookiefile = os.path.join(homepath, ".post-review-cookies.txt")
-opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
+opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj), urllib2.ProxyHandler({}))
opener.addheaders = [('User-agent', 'post-review/' + VERSION)]
urllib2.install_opener(opener)
@@ -207,7 +208,8 @@
debug_fields["password"] = "**************"
debug('HTTP POSTing to %s: %s' % (path, debug_fields))
- url = urljoin(self.url, path)
+ url = 'http://%s%s' % (self.url, path)
+
content_type, body = self._encode_multipart_formdata(fields, files)
headers = {
'Content-Type': content_type,
@@ -215,7 +217,7 @@
}
try:
-