bug 1523104: remote: use application/json mime type for responses; r=ochameau
authorAndreas Tolfsen <ato@sny.no>
Sun, 17 Feb 2019 17:38:12 +0000
changeset 521097 65f5581faf6a
parent 521096 02050b4ee473
child 521098 947ad73d45af
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersochameau
bugs1523104
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 1523104: remote: use application/json mime type for responses; r=ochameau
remote/Handler.jsm
--- a/remote/Handler.jsm
+++ b/remote/Handler.jsm
@@ -29,16 +29,17 @@ class Handler {
       log.warn(e);
     }
   }
 }
 
 class JSONHandler extends Handler {
   register(server) {
     server.registerPathHandler(this.path, (req, resp) => {
+      resp.setHeader("content-type", "application/json");
       this.rawHandle(req, new JSONWriter(resp));
     });
   }
 }
 
 class TargetListHandler extends JSONHandler {
   constructor(targets) {
     super();