facebook/tornado — pull request #437 by kingel (2012-01-15 15:28:52+00:00)
Title: Wrong websocket scheme is chosen

In our setup we have stud (sslproxy) in front of haproxy in front of tornado and nginx.

In this situation tornado sees the request protocol as http instead of https, so it will choose "ws", when we look at the origin we see "https" instead of "http" and we can choose for "wss".

Is this something other people encounter? Is the patch correct?