Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
I changed the static middleware to ignore ENAMETOOLONG like it does with ENOENT, because obviously it's also a static file "miss", and the request should (IMHO) continue on to subsequent middleware (where it could actually be a valid api url). I added the relevant unit test as well.
Feel free to integrate this. Thanks for the great lib either way.