-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
code urlparse.urlparse(self.uri) has problem in twisted-13.10(windows x64) #2
Comments
What browser are you using and how have you configured the proxy? I'd like to try to repro and see why the port is getting parsed into the path. |
Also, can you include the value of self.uri before your change? Is it just "www.google.com:443"? |
Or do you have twisted set up in some way to forward the outbound requests through another proxy? |
I use chrome. I debug it and the value of self.uri is just "www.google.com:443".. |
What version of python are you running? I can't repro |
I can repro this When you debug, can you debug |
2.7.5 |
OK.Later I will give you the result. |
Ping. Any updates? |
the repr(self.uri) is ('uri', "'clients4.google.com:443'") |
How is self.uri a tuple? Are you sure you did a log.msg(repr(self.uri)) in Passing a tuple to urlparse() throws |
I use print('uri', repr(self.uri))
|
When I set the proxy with server.py and browse https://www.google.com, it outputs the 501 error.
I find the problem is causing by the below
And I change the code to below, it runs without any problem.
The text was updated successfully, but these errors were encountered: