From 1af8bd16b7c403095fad5cb54e30fd33efb56550 Mon Sep 17 00:00:00 2001 From: lilia Date: Tue, 28 Jul 2015 14:57:09 -0700 Subject: [PATCH] Add default response message to websocketresources // FREEBIE --- js/libtextsecure.js | 2 +- libtextsecure/websocket-resources.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/libtextsecure.js b/js/libtextsecure.js index fb4ed614..d0457fd9 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -38568,7 +38568,7 @@ TextSecureWebSocket = function (url, opts) { var handleRequest = opts.handleRequest; if (typeof handleRequest !== 'function') { handleRequest = function(request) { - request.respond(404); + request.respond(404, 'Not found'); }; } this.sendRequest = function(options) { diff --git a/libtextsecure/websocket-resources.js b/libtextsecure/websocket-resources.js index c613849a..112cd7c2 100644 --- a/libtextsecure/websocket-resources.js +++ b/libtextsecure/websocket-resources.js @@ -97,7 +97,7 @@ var handleRequest = opts.handleRequest; if (typeof handleRequest !== 'function') { handleRequest = function(request) { - request.respond(404); + request.respond(404, 'Not found'); }; } this.sendRequest = function(options) {