Commit a59eae1
committed
fix: forward headers and restrict methods in enableFallback mode
- Forward request headers to serveStaticFile to enable 304 caching
- Restrict static file serving to GET/HEAD methods only
- Prevents unexpected behavior with POST/PUT/DELETE requests1 parent e033522 commit a59eae1
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
300 | 303 | | |
301 | 304 | | |
302 | 305 | | |
| |||
316 | 319 | | |
317 | 320 | | |
318 | 321 | | |
319 | | - | |
| 322 | + | |
| 323 | + | |
320 | 324 | | |
321 | 325 | | |
322 | 326 | | |
| |||
0 commit comments