Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Correct JSON MIME type (Fixes #393) #394

Merged
merged 1 commit into from
Jun 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plugin/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def allowOrigin(self, req):
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))]
Expand Down Expand Up @@ -298,4 +298,4 @@ def format_exception_reply(_api_version, exception):
"params": {"type": "object"},
},
"required": ["action"],
}
}