1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

Fix default port for HTTPS.

This commit is contained in:
Abhinav Gupta
2015-02-23 23:37:04 -08:00
parent 32831d4151
commit 2473bdb77a
4 changed files with 5 additions and 5 deletions

View File

@@ -51,7 +51,7 @@ class Request(object):
parse_uri = urlparse(self.uri)
port = parse_uri.port
if port is None:
port = {'https': 433, 'http': 80}[parse_uri.scheme]
port = {'https': 443, 'http': 80}[parse_uri.scheme]
return port
@property