@interopio/gateway-server 0.5.0-beta → 0.5.1-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +7 -1
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +3 -0
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/changelog.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -2567,6 +2567,9 @@ function createListener(storage, middleware, routes3, onSocketError) {
|
|
|
2567
2567
|
socket.destroy();
|
|
2568
2568
|
}
|
|
2569
2569
|
} else {
|
|
2570
|
+
if (logger7.enabledFor("debug")) {
|
|
2571
|
+
logger7.debug(`rejecting request for ${path} with method ${request.method} from ${request.socket.remoteAddress}:${request.socket.remotePort} with headers: ${JSON.stringify(request._req.rawHeaders)}`);
|
|
2572
|
+
}
|
|
2570
2573
|
response.statusCode = 426;
|
|
2571
2574
|
response._res.appendHeader("Upgrade", "websocket").appendHeader("Connection", "Upgrade").appendHeader("Content-Type", "text/plain");
|
|
2572
2575
|
await response.end(`This service [${request.path}] requires use of the websocket protocol.`);
|