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

Commit

Permalink
Merge pull request #394 from nihil-admirari/master
Browse files Browse the repository at this point in the history
Correct JSON MIME type (Fixes #393)
  • Loading branch information
FooSoft authored Jun 27, 2023
2 parents eef3be8 + 423d3e2 commit 6693ab6
Showing 1 changed file with 2 additions and 2 deletions.
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"],
}
}

0 comments on commit 6693ab6

Please sign in to comment.