Skip to content
This repository was archived by the owner on May 15, 2020. It is now read-only.

Commit

Permalink
Don't redirect static directories (close #314)
Browse files Browse the repository at this point in the history
  • Loading branch information
sj26 authored and travisjeffery committed Oct 27, 2013
1 parent 0d8082f commit 595c33f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/http_server.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/http_server.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ module.exports = class HttpServer extends connect.HTTPServer
if req.url.match /\.\./
return next()

handler = @staticHandlers[root] ?= connect.static join(root, "public")
handler = @staticHandlers[root] ?= connect.static(join(root, "public"), redirect: false)
handler req, res, next

# Check to see if the application root contains a `config.ru`
Expand Down

0 comments on commit 595c33f

Please sign in to comment.