Merge pull request #394 from nihil-admirari/master

Correct JSON MIME type (Fixes #393)
This commit is contained in:
Alexei Yatskov 2023-06-26 18:11:19 -07:00 committed by GitHub
commit 6693ab6b97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -248,7 +248,7 @@ class WebServer:
def buildHeaders(self, corsOrigin, body):
return [
['HTTP/1.1 200 OK', None],
['Content-Type', 'text/json'],
['Content-Type', 'application/json'],
['Access-Control-Allow-Origin', corsOrigin],
['Access-Control-Allow-Headers', '*'],
['Content-Length', str(len(body))]