summaryrefslogtreecommitdiffhomepage
path: root/src/nodejs/unit-http/websocket_request.js
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2024-01-16 15:37:07 +0000
committerAndrei Zeliankou <zelenkov@nginx.com>2024-01-16 15:37:07 +0000
commita1e00b4e28d56365b4b5cc4aa44185c4b53f5c33 (patch)
treed733e3560e2734d7bfdd4c92df6ad3736e3a1e0b /src/nodejs/unit-http/websocket_request.js
parent5a8337933df1cf3aba967d86549e236dd9173386 (diff)
downloadunit-a1e00b4e28d56365b4b5cc4aa44185c4b53f5c33.tar.gz
unit-a1e00b4e28d56365b4b5cc4aa44185c4b53f5c33.tar.bz2
White space formatting fixes
Closes: <https://github.com/nginx/unit/pull/1062>
Diffstat (limited to '')
-rw-r--r--src/nodejs/unit-http/websocket_request.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nodejs/unit-http/websocket_request.js b/src/nodejs/unit-http/websocket_request.js
index d84e428b..450ab629 100644
--- a/src/nodejs/unit-http/websocket_request.js
+++ b/src/nodejs/unit-http/websocket_request.js
@@ -247,7 +247,7 @@ WebSocketRequest.prototype.parseCookies = function(str) {
WebSocketRequest.prototype.accept = function(acceptedProtocol, allowedOrigin, cookies) {
this._verifyResolution();
-
+
// TODO: Handle extensions
var protocolFullCase;
@@ -418,7 +418,7 @@ WebSocketRequest.prototype.accept = function(acceptedProtocol, allowedOrigin, co
// if (negotiatedExtensions) {
// response += 'Sec-WebSocket-Extensions: ' + negotiatedExtensions.join(', ') + '\r\n';
// }
-
+
// Mark the request resolved now so that the user can't call accept or
// reject a second time.
this._resolved = true;
@@ -447,12 +447,12 @@ WebSocketRequest.prototype.accept = function(acceptedProtocol, allowedOrigin, co
WebSocketRequest.prototype.reject = function(status, reason, extraHeaders) {
this._verifyResolution();
-
+
// Mark the request resolved now so that the user can't call accept or
// reject a second time.
this._resolved = true;
this.emit('requestResolved', this);
-
+
if (typeof(status) !== 'number') {
status = 403;
}