From a33b413b1a9e2f1410a283760907f55fc63317b3 Mon Sep 17 00:00:00 2001 From: Zhiqiang Zhang Date: Wed, 25 May 2016 15:33:31 +0800 Subject: [PATCH] [Test] Use application/json media type for JSON-encoded requests It is recommended by JavaScript: The Definitive Guide and standardized by https://tools.ietf.org/html/rfc4627 --- test/resources/testharnessreport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/resources/testharnessreport.js b/test/resources/testharnessreport.js index 6d60506d..9a7d7d77 100644 --- a/test/resources/testharnessreport.js +++ b/test/resources/testharnessreport.js @@ -412,7 +412,7 @@ function dump_test_results(tests, status) { } }; request.open("POST", "test.py"); - request.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"); + request.setRequestHeader("Content-Type", "application/json"); request.send(JSON.stringify(data)); }