pumazi/wsgi_intercept2 — Issue #20: 20 - environ['wsgi.url_scheme'] is always "http" 
Author: pumazi
Created: 2011-12-22 19:44:32+00:00
State: open

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