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 65f5581faf6ae4911fcef5bf78c1b61b7e1ec42d
parent 521096 02050b4ee473345d8c4118c4183ad65f52a273d8
child 521098 947ad73d45af739dfe8f699cbe8e4016a8f26f67
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();