Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directories without a trailing slash #27 #28

Closed
wants to merge 2 commits into from
Closed

Directories without a trailing slash #27 #28

wants to merge 2 commits into from

Conversation

pierreburgy
Copy link
Contributor

Format the path to serve static file servers and not require a trailing slash for directories, so that you can do both /directory and /directory/.

@evbogue
Copy link

evbogue commented Oct 13, 2015

Can we get this merged and pushed to npm?

@pierreburgy
Copy link
Contributor Author

Looks good to me.

@evbogue
Copy link

evbogue commented Oct 13, 2015

@pierreburgy are you saying that this is ready to be patched, or that it should be working for me in production with an npm install?

@pierreburgy
Copy link
Contributor Author

That is ready to patch. And I look forward, to see this fix on npm too ;)

@evbogue
Copy link

evbogue commented Oct 13, 2015

@pierreburgy +1

@jonathanong
Copy link
Member

great!

@@ -187,6 +187,49 @@ describe('send(ctx, file)', function(){
})
})

describe('when path does not finish with slash and format is disabled', function(){
it('should 200', function(done){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should 404

@jonathanong
Copy link
Member

@coderhaoxin added you on npm. wanna merge and publish?

@haoxins
Copy link
Member

haoxins commented Oct 13, 2015

ok!

@haoxins
Copy link
Member

haoxins commented Oct 13, 2015

@pierreburgy

land bfd4cbc

v2.0.0

@haoxins haoxins closed this Oct 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants