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

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

Open
GoogleCodeExporter opened this issue Dec 4, 2015 · 0 comments
Open

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

GoogleCodeExporter opened this issue Dec 4, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 issue reported on code.google.com by [email protected] on 6 Jul 2011 at 12:12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant