Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dnsviz/dnsviz.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCasey Deccio <casey@deccio.net>2016-04-14 23:55:32 +0300
committerCasey Deccio <casey@deccio.net>2016-04-14 23:55:32 +0300
commitaa944726979fe2bd56357af812bf1787da462556 (patch)
treeee859a182261058cca9ed75167bbbbc702f3402a /contrib
parent328aef3376f3c60aa6946adc40702dc288913560 (diff)
Remove trailing whitespace
Diffstat (limited to 'contrib')
-rw-r--r--contrib/dnsviz-lg-ws.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/dnsviz-lg-ws.js b/contrib/dnsviz-lg-ws.js
index 9baf05c..c4f6ac1 100644
--- a/contrib/dnsviz-lg-ws.js
+++ b/contrib/dnsviz-lg-ws.js
@@ -26,7 +26,7 @@ var PROTOCOL = 'dns-looking-glass';
function setupSocket(webSocket, filename) {
var crypto = require('crypto');
- var fs = require('fs');
+ var fs = require('fs');
var net = require('net');
var path = require('path');
var os = require('os');
@@ -145,8 +145,8 @@ function handleUpgrade(req, socket, head) {
var protocols = req.headers['sec-websocket-protocol'];
var error = checkHeaders(key, origin, version, protocols);
if (error != null) {
- var errorResponse = 'HTTP/1.1 ' + error.code + ' ' + error.msg + '\r\n' +
- error.extraHeader +
+ var errorResponse = 'HTTP/1.1 ' + error.code + ' ' + error.msg + '\r\n' +
+ error.extraHeader +
'Content-Length: ' + error.content.length + '\r\n\r\n' +
error.content;
socket.write(errorResponse, function() {