Skip to content

Commit

Permalink
Explicitly pass debug=False to flup server (tx irrelative). (closes w…
Browse files Browse the repository at this point in the history
…ebpy#35)

Version of flup in ubuntu 10.04 has debug=True as default. This is a security issue as it can expose tracebacks.
  • Loading branch information
anandology committed Dec 26, 2010
1 parent dc961c9 commit 5e276f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/wsgi.py
Expand Up @@ -14,12 +14,12 @@
def runfcgi(func, addr=('localhost', 8000)):
"""Runs a WSGI function as a FastCGI server."""
import flup.server.fcgi as flups
return flups.WSGIServer(func, multiplexed=True, bindAddress=addr).run()
return flups.WSGIServer(func, multiplexed=True, bindAddress=addr, debug=False).run()

def runscgi(func, addr=('localhost', 4000)):
"""Runs a WSGI function as an SCGI server."""
import flup.server.scgi as flups
return flups.WSGIServer(func, bindAddress=addr).run()
return flups.WSGIServer(func, bindAddress=addr, debug=False).run()

def runwsgi(func):
"""
Expand Down

0 comments on commit 5e276f3

Please sign in to comment.