Skip to content
Commits on Source (3)
0.20.1 - 2009-08-27
-------------------
- Fix regression in httpslib.ProxyHTTPSConnection, by Miloslav Trmac
0.20 - 2009-08-10
-----------------
- Deprecated M2Crypto.PGP subpackage since nobody seems to be using it nor
......
......@@ -16,7 +16,7 @@ Copyright (C) 2004-2007 OSAF. All Rights Reserved.
Copyright 2008-2009 Heikki Toivonen. All rights reserved.
"""
version_info = (0, 20)
version_info = (0, 20, 1)
version = '.'.join([str(_v) for _v in version_info])
import __m2crypto
......
......@@ -4,7 +4,7 @@ Copyright (c) 1999-2004 Ng Pheng Siong. All rights reserved."""
import string, sys
import socket
from urlparse import urlsplit
from urlparse import urlsplit, urlunsplit
import base64
from httplib import *
......@@ -122,7 +122,7 @@ class ProxyHTTPSConnection(HTTPSConnection):
def putrequest(self, method, url, skip_host=0, skip_accept_encoding=0):
#putrequest is called before connect, so can interpret url and get
#real host/port to be used to make CONNECT request to proxy
proto, netloc, path, query, fraqment = urlsplit(url)
proto, netloc, path, query, fragment = urlsplit(url)
if not proto:
raise ValueError, "unknown URL type: %s" % url
......@@ -144,6 +144,7 @@ class ProxyHTTPSConnection(HTTPSConnection):
self._real_host = host
self._real_port = int(port)
rest = urlunsplit((None, None, path, query, fragment))
HTTPSConnection.putrequest(self, method, rest, skip_host, skip_accept_encoding)
def putheader(self, header, value):
......
......@@ -134,7 +134,7 @@ m2crypto = Extension(name = 'M2Crypto.__m2crypto',
)
setup(name = 'M2Crypto',
version = '0.20',
version = '0.20.1',
description = 'M2Crypto: A Python crypto and SSL toolkit',
long_description = '''\
M2Crypto is the most complete Python wrapper for OpenSSL featuring RSA, DSA,
......