Skip to content

Commit cb1a1eb

Browse files
committed
Fix redirect loop in Node.js 0.11.14
1 parent 8e669a2 commit cb1a1eb

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

HISTORY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
unreleased
2+
==========
3+
4+
* Fix redirect loop in Node.js 0.11.14
5+
16
1.8.0 / 2015-01-05
27
==================
38

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ exports = module.exports = function serveStatic(root, options) {
8080
}
8181

8282
// append trailing slash
83+
originalUrl.path = null
8384
originalUrl.pathname = collapseLeadingSlashes(originalUrl.pathname + '/')
8485

8586
// reformat the URL

0 commit comments

Comments
 (0)