vercel/serve-handler

Leading slashes handled differently before @

ojeytonwilliams opened this issue · 0 comments

Hey, I noticed what looks like a bug with how leading slashes are processed.

This repository reproduces it.

Once the micro server has started, if you go to http://localhost:3000//test/txt.txt you should see an empty page. However, if you go to http://localhost:3000//@test/txt.txt it will 404. Without the extra slash, both paths, http://localhost:3000/test/txt.txt and http://localhost:3000/@test/txt.txt, work as expected.