v1.0.13
Patches
-
(
sirv
) Only usereq.path
if hasreq._decoded
flag exists (#82):The
req._decoded
check was added & should have always been in there, since this wassirv
's way of preventing duplicatedecodeURIComponent
calls. However, this was only true when it received a request from apolka@next
app, since Polka was previously writing the decoded value toreq.path
– this changed with[email protected]
Now that the latest
polka@next
(and Express) doesn't decode automatically anymore,req.path
isn't trustworthy on its own. It needsreq._decoded
to be there too in order to trust it.This combo-check is backwards compatible for
polka@next
users who don't upgrade and will unblock Express users for the first time, who have always had a "raw"req.path
value set.