baseprime / grapnel

The smallest JavaScript router with named parameters, HTML5 pushState, and middleware support
http://grapnel.js.org
467 stars 40 forks source link

Issue when using multiple GrapnelServer instances #61

Closed ilearnio closed 5 years ago

ilearnio commented 8 years ago

I am creating a simple router module, just a wrapper around grapnel and grapnel-server, that will fit all my needs. But when I tried to create two instances of GrapnelServer in my mocha tests the second instance inherited the req parameter (in the middleware) from the first instance.

Here is an example: https://tonicdev.com/artnikpro/grapnel-server-issue