Correct JSON MIME type (Fixes #393)
This commit is contained in:
parent
eef3be8599
commit
423d3e2aa2
@ -248,7 +248,7 @@ class WebServer:
|
|||||||
def buildHeaders(self, corsOrigin, body):
|
def buildHeaders(self, corsOrigin, body):
|
||||||
return [
|
return [
|
||||||
['HTTP/1.1 200 OK', None],
|
['HTTP/1.1 200 OK', None],
|
||||||
['Content-Type', 'text/json'],
|
['Content-Type', 'application/json'],
|
||||||
['Access-Control-Allow-Origin', corsOrigin],
|
['Access-Control-Allow-Origin', corsOrigin],
|
||||||
['Access-Control-Allow-Headers', '*'],
|
['Access-Control-Allow-Headers', '*'],
|
||||||
['Content-Length', str(len(body))]
|
['Content-Length', str(len(body))]
|
||||||
@ -298,4 +298,4 @@ request_schema = {
|
|||||||
"params": {"type": "object"},
|
"params": {"type": "object"},
|
||||||
},
|
},
|
||||||
"required": ["action"],
|
"required": ["action"],
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user