]> git.ipfire.org Git - thirdparty/tornado.git/commit
httpserver: If no X-Scheme header, use the normal request value. 695/head
authorEvan Jones <ej@evanjones.ca>
Tue, 12 Mar 2013 20:23:52 +0000 (16:23 -0400)
committerEvan Jones <ej@evanjones.ca>
Tue, 12 Mar 2013 20:23:52 +0000 (16:23 -0400)
commit081af7c4d3789a8d863dfa62d6952a2399287923
tree003d305565f6fdbf5ee5e5a890ce4157939adac6
parent16932d8cff5c513fa723d66b6a37181beddd3578
httpserver: If no X-Scheme header, use the normal request value.

Previously, if xheaders is True and there are no X headers passed (e.g. when
developing locally), scheme was always "http". This makes in "http" or
"https", based on what was actually used for the request.

Add tests for the X-Scheme and X-Forwarded-Proto headers.
tornado/httpserver.py
tornado/test/httpserver_test.py