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

Support for next() style middleware (as advertised) #5

Closed
wants to merge 4 commits into from
Closed

Support for next() style middleware (as advertised) #5

wants to merge 4 commits into from

Conversation

bengourley
Copy link
Contributor

The readme says mount() 'will call next() if it doesn't do anything', but it doesn't. This causes requests that hit the st middleware, that don't get served static assets to hang. (When using Express/Connect or similar).

This PR:

  • adds a test to confirm the issue
  • fixes the issue
  • adds devDependencies so that the tests are runnable after doing npm install --development

@isaacs
Copy link
Owner

isaacs commented Sep 18, 2012

Wow, I can't believe I forgot that. Totally meant to do it :)

Minor test-framework-usage nit, but otherwise looks great.

@bengourley
Copy link
Contributor Author

Is this good to merge now?

@isaacs
Copy link
Owner

isaacs commented Sep 20, 2012

Landed in 0.0.7.

@isaacs isaacs closed this Sep 20, 2012
@bengourley
Copy link
Contributor Author

Great, thanks.

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.

2 participants