From 423d3e2aa2a47d62d21a240cb2f7d4c5248cf0d1 Mon Sep 17 00:00:00 2001 From: nihil-admirari <50202386+nihil-admirari@users.noreply.github.com> Date: Fri, 23 Jun 2023 09:12:28 +0300 Subject: [PATCH] Correct JSON MIME type (Fixes #393) --- plugin/web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/web.py b/plugin/web.py index 1f325b4..7a3d326 100644 --- a/plugin/web.py +++ b/plugin/web.py @@ -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))] @@ -298,4 +298,4 @@ request_schema = { "params": {"type": "object"}, }, "required": ["action"], -} \ No newline at end of file +}