summaryrefslogtreecommitdiff
path: root/oauthlib
diff options
context:
space:
mode:
authorIb Lundgren <ib.lundgren@gmail.com>2012-03-15 15:45:52 +0100
committerIb Lundgren <ib.lundgren@gmail.com>2012-03-15 15:45:52 +0100
commitbd87217afa222cd799b5ee842a473be501ca3840 (patch)
tree734246c3603e6602eea12c13150c76655d53c2a9 /oauthlib
parent6cc32aaae5c97e36e32c04232e1135e1e82a0177 (diff)
downloadoauthlib-bd87217afa222cd799b5ee842a473be501ca3840.tar.gz
Strip HTTPS port
Diffstat (limited to 'oauthlib')
-rw-r--r--oauthlib/signature.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/oauthlib/signature.py b/oauthlib/signature.py
index 7ee9270..0f709d6 100644
--- a/oauthlib/signature.py
+++ b/oauthlib/signature.py
@@ -61,7 +61,7 @@ def normalize_base_string_uri(uri):
# strip port 80 from host if expliticly present (3.4.1.2 #3)
if u':' in netloc:
host, port = netloc.split(u':', 1)
- if port == u'80':
+ if port == u'80' or port == u'443':
netloc = host
return urlparse.urlunparse((scheme, netloc, path, '', '', ''))