From 6b1300177d56d3ad62b3ccc07062e23b05b11534 Mon Sep 17 00:00:00 2001 From: Andreas Tolfsen Date: Sun, 17 Feb 2019 17:39:19 +0000 Subject: [PATCH] bug 1523104: remote: respond with 500 Internal Server Error if unable to serialise JSON; r=ochameau --- remote/Handler.jsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remote/Handler.jsm b/remote/Handler.jsm index 798d2034c6b4..edd923c95251 100644 --- a/remote/Handler.jsm +++ b/remote/Handler.jsm @@ -88,7 +88,7 @@ class JSONWriter { this._response.write(json); } catch (e) { log.error(`Unable to serialise JSON: ${e.message}`, e); - this._response.write(""); + this._response.setStatusLine("1.1", 500, "Internal Server Error"); } } }