Skip to content

Commit

Permalink
change Content-Type
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandredevely committed Mar 15, 2024
1 parent 3837007 commit 6d43eaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions od.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python3.8
#
# Software Name : abcdesktop.io
# Version: 0.2
Expand Down Expand Up @@ -70,7 +70,7 @@ def api_handle_error():
# return error dict json
result = { 'status': status, 'message':message, 'exception':str(ex) }
build_error = json.dumps( result ) + '\n'
cherrypy.response.headers['Content-Type'] = 'application/json'
cherrypy.response.headers['Content-Type'] = 'application/json;charset=utf-8'
cherrypy.response.status = status
cherrypy.response.body = build_error.encode('utf-8')

Expand Down

0 comments on commit 6d43eaa

Please sign in to comment.