AgentKWang / proxpy

Automatically exported from code.google.com/p/proxpy
0 stars 0 forks source link

host:port url handling #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. lookup any url through the proxy in the form of https://host:port/etc

modify the following code in http.py ( getHost() )
from 
            if port is None and r.scheme != "https":
                port = 80
            else:
                port = 443

to
            if port is None and r.scheme != "https":
                port = 80
            elif port is None and r.scheme == "https":
                port = 443

Original issue reported on code.google.com by zqy...@gmail.com on 29 Jan 2014 at 3:25