From 1504422a35421c8f5343cbc87b5c78e132a31cf6 Mon Sep 17 00:00:00 2001 From: Tianxiang Chen Date: Thu, 18 Oct 2018 23:42:51 -0700 Subject: [PATCH] set redirect to false for serve-static --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index cb10ccb..79d9c92 100644 --- a/index.js +++ b/index.js @@ -83,11 +83,11 @@ LightServer.prototype.start = function () { if (_this.options.serve) { app.use( _this.options.servePrefix || '', - serveStatic(_this.options.serve, { extensions: ['html'] }) + serveStatic(_this.options.serve, { extensions: ['html'], redirect: false }) ) app.use( _this.options.servePrefix || '', - serveIndex(_this.options.serve, { 'icons': true }) + serveIndex(_this.options.serve, { icons: true }) ) }