Add default response message to websocketresources
// FREEBIE
This commit is contained in:
@@ -38568,7 +38568,7 @@ TextSecureWebSocket = function (url, opts) {
|
|||||||
var handleRequest = opts.handleRequest;
|
var handleRequest = opts.handleRequest;
|
||||||
if (typeof handleRequest !== 'function') {
|
if (typeof handleRequest !== 'function') {
|
||||||
handleRequest = function(request) {
|
handleRequest = function(request) {
|
||||||
request.respond(404);
|
request.respond(404, 'Not found');
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
this.sendRequest = function(options) {
|
this.sendRequest = function(options) {
|
||||||
|
@@ -97,7 +97,7 @@
|
|||||||
var handleRequest = opts.handleRequest;
|
var handleRequest = opts.handleRequest;
|
||||||
if (typeof handleRequest !== 'function') {
|
if (typeof handleRequest !== 'function') {
|
||||||
handleRequest = function(request) {
|
handleRequest = function(request) {
|
||||||
request.respond(404);
|
request.respond(404, 'Not found');
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
this.sendRequest = function(options) {
|
this.sendRequest = function(options) {
|
||||||
|
Reference in New Issue
Block a user