NGSegovia / wsgi-intercept

Automatically exported from code.google.com/p/wsgi-intercept
Other
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 Jonathan...@gmail.com on 6 Jul 2011 at 12:12