Browse Source

Response bodies in HTTP are raw bytes

tags/nilmdb-2.0.0
Jim Paris 2 years ago
parent
commit
e82ef60e2e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      nilmdb/server/serverutil.py

+ 1
- 1
nilmdb/server/serverutil.py View File

@@ -123,7 +123,7 @@ def CORS_allow(methods):
response['Access-Control-Allow-Methods'] = ', '.join(methods)
# Try to stop further processing and return a 200 OK
cherrypy.response.status = "200 OK"
cherrypy.response.body = ""
cherrypy.response.body = b""
cherrypy.request.handler = lambda: ""
return



Loading…
Cancel
Save