Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix for the Tornado server #38
I fixed a small bug when we try to use nginx with Tornado and Flask.
The value of SERVER_PORT is an integer value and not a String, and we have a traceback, because it can concat a string with an integer.
PS: I think my commit message is wrong.
This is a bug in tornado and should be fixed there. I will not change Werkzeug in that regard because it opens a can of worms and there might be other places where SERVER_PORT is used.
This problem can easily be worked around with a small WSGI middleware: http://paste.pocoo.org/show/345661/