Skip to content

Commit 455036a

Browse files
committed
turn of debugging, send response as text/plain
1 parent 3cf184a commit 455036a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ def get(self):
1010
self.response.headers['Content-Type'] = 'text/plain'
1111
self.response.out.write(open('README', 'r').read())
1212
def post(self):
13-
self.response.headers['Content-Type'] = 'text/html'
13+
self.response.headers['Content-Type'] = 'text/plain'
1414
self.response.out.write(pygmentize(self.request.get("lang"), self.request.get("code")))
1515

16-
application = webapp.WSGIApplication([('/', App)], debug=True)
16+
application = webapp.WSGIApplication([('/', App)])
1717

1818
def pygmentize(lang, code):
1919
lexer = get_lexer_by_name(lang)

0 commit comments

Comments
 (0)