Commit 5de4c35
committed
fix: stabilize static FS serving and session pool reuse
- Static middleware: use empty Root instead of "." for io/fs.FS so fasthttp's pathToFilePath returns "" instead of ".", avoiding the openIndexFile bug that builds invalid "./index.html" paths on all platforms without requiring a vendor patch.
- SendFile: remove redundant Root = "." override for io/fs.FS since Root is already "" with AllowEmptyRoot enabled.
- Session: call Reset() in acquireData() after pool Get to prevent dirty data objects from leaking keys across parallel tests.1 parent 06ad7b6 commit 5de4c35
3 files changed
+5
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
168 | 169 | | |
169 | 170 | | |
170 | | - | |
| 171 | + | |
171 | 172 | | |
172 | 173 | | |
173 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
835 | 835 | | |
836 | 836 | | |
837 | 837 | | |
838 | | - | |
839 | | - | |
840 | | - | |
841 | | - | |
842 | 838 | | |
843 | 839 | | |
844 | 840 | | |
| |||
0 commit comments