Skip to content

Commit 160fa9e

Browse files
Replacing headers with constant
1 parent ad94b8f commit 160fa9e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/core/Proxy.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,7 @@ class Proxy {
7777
};
7878
logger.info(`${HTTPLOG} Received http request ${options}`);
7979
if (request.url.indexOf('/status') > -1) {
80-
response.writeHead(200, {
81-
'content-type': 'application/json; charset=utf-8',
82-
accept: 'application/json',
83-
'WWW-Authenticate': 'Basic realm="WS Reconnect Proxy"',
84-
});
80+
response.writeHead(200, responseHeaders);
8581
response.end(JSON.stringify({ status: 'Running' }));
8682
return;
8783
} else if (

0 commit comments

Comments
 (0)