aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/serve.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/serve.js b/lib/serve.js
index 951daea..f825ed7 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -2873,7 +2873,9 @@ Serve.prototype.zip = function (url) {
Serve.prototype.web = function (url) {
var self = this
- var id = decodeURIComponent(url.substr(1))
+ var id = url.substr(1)
+ try { id = decodeURIComponent(id) }
+ catch(e) {}
var components = url.split('/')
if (components[0] === '') components.shift()