Return a guess for whether 'wsgi.url_scheme' should be 'http' or 'https'
(environ)
| 27 | raise StopIteration |
| 28 | |
| 29 | def guess_scheme(environ): |
| 30 | """Return a guess for whether 'wsgi.url_scheme' should be 'http' or 'https' |
| 31 | """ |
| 32 | if environ.get("HTTPS") in ('yes','on','1'): |
| 33 | return 'https' |
| 34 | else: |
| 35 | return 'http' |
| 36 | |
| 37 | def application_uri(environ): |
| 38 | """Return the application's base URI (no PATH_INFO or QUERY_STRING)""" |
no test coverage detected
searching dependent graphs…