Browse Source

cherrypy: Add Content-Type header for plaintext

INADA Naoki 10 years ago
parent
commit
7427663961
1 changed files with 1 additions and 0 deletions
  1. 1 0
      frameworks/Python/cherrypy/app.py

+ 1 - 0
frameworks/Python/cherrypy/app.py

@@ -59,6 +59,7 @@ class CherryPyBenchmark(object):
 
     @cherrypy.expose
     def plaintext(self):
+        cherrypy.response.headers["Content-Type"] = "text/plain"
         return "Hello, world!"
 
     @cherrypy.expose