tlsd 2.6.0 → 2.6.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tlsd.js +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tlsd",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "A server for web app prototyping with HTTPS and Websockets",
5
5
  "main": "tlsd.js",
6
6
  "bin": {
package/tlsd.js CHANGED
@@ -168,7 +168,12 @@ const basic_handler = function( root ) {
168
168
  // Serve static files for domain
169
169
  app.use( serveStatic( root + "/static" ) );
170
170
 
171
- app.use( serveStatic( root + "/static/404" ) );
171
+ app.use( function( req, res, next ) {
172
+ res.writeHead( 302, {
173
+ "Location": "/404/",
174
+ });
175
+ res.end();
176
+ } );
172
177
 
173
178
  return app;
174
179