Skip to content
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

20 - environ['wsgi.url_scheme'] is always "http" #20

Open
mmulich opened this issue Dec 22, 2011 · 0 comments
Open

20 - environ['wsgi.url_scheme'] is always "http" #20

mmulich opened this issue Dec 22, 2011 · 0 comments
Labels

Comments

@mmulich
Copy link
Owner

mmulich commented Dec 22, 2011

What steps will reproduce the problem?
1. import wsgi_intercept.mechanize_intercept
2. wsgi_intercept.add_wsgi_intercept('some_host', 443, create_fn)
3. b = wsgi_intercept.mechanize_intercept.Browser()
4. response = b.open('https://some_host:443'

What is the expected output? What do you see instead?

The WSGI application receives a value of "http" in environ['wsgi.url_scheme'] rather than "https".

What version of the product are you using? On what operating system?

wsgi_intercept SVN version 55 on GNU/Linux

Please provide any additional information below.

Function make_environ() is currently the only place the scheme is set. WSGI_HTTPSConnection should probably set the scheme to "https".

Original link: http://code.google.com/p/wsgi-intercept/issues/detail?id=20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant