socket-function 0.56.0 → 0.57.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "socket-function",
3
- "version": "0.56.0",
3
+ "version": "0.57.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
@@ -58,6 +58,8 @@ export async function httpCallHandler(request: http.IncomingMessage, response: h
58
58
  try {
59
59
  // Always set x-frame-options, to prevent iframe embedding click hijacking
60
60
  response.setHeader("X-Frame-Options", "SAMEORIGIN");
61
+ // Don't keep alive, to prevent issues with zombie sockets.
62
+ response.setHeader("Connection", "close");
61
63
 
62
64
  let urlBase = request.url;
63
65
  if (!urlBase) {