Skip to content

Commit

Permalink
Replacing headers with constant
Browse files Browse the repository at this point in the history
  • Loading branch information
rishigupta1599 committed May 27, 2024
1 parent ad94b8f commit 160fa9e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/core/Proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,7 @@ class Proxy {
};
logger.info(`${HTTPLOG} Received http request ${options}`);
if (request.url.indexOf('/status') > -1) {
response.writeHead(200, {
'content-type': 'application/json; charset=utf-8',
accept: 'application/json',
'WWW-Authenticate': 'Basic realm="WS Reconnect Proxy"',
});
response.writeHead(200, responseHeaders);
response.end(JSON.stringify({ status: 'Running' }));
return;
} else if (
Expand Down

0 comments on commit 160fa9e

Please sign in to comment.