socket-function 0.46.0 → 0.47.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.46.0",
3
+ "version": "0.47.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",
@@ -210,7 +210,7 @@ export async function httpCallHandler(request: http.IncomingMessage, response: h
210
210
 
211
211
  } catch (e: any) {
212
212
  console.log(`HTTP error (${request.method}) ${e.stack}`);
213
- response.writeHead(500, String(e.message));
213
+ response.writeHead(500, String(e.message).replace(/[^\x20-\x7E]/g, ""));
214
214
  } finally {
215
215
  response.end();
216
216
  }