Commit a9318c3
committed
Fix url wrong base if used with Express app.use()
If using Express 4 `app.use()` to mount certain routes paths, the req.url will be rewritten to reflect the mounted path. This has the effect of creating a wrong base resulting in an invalid computed signature. I changed to use `req.originalUrl` since it preserves the original path.1 parent 18de16d commit a9318c3
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
0 commit comments