Add default response message to websocketresources
// FREEBIE
This commit is contained in:
parent
44b7b32385
commit
1af8bd16b7
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue