Commit 5922426
committed
fix: Improve XSSI prefix handling robustness
- Use regex to ensure prefix is only removed from start of string
- Make removal conditional on prefix presence
- Prevents accidental removal from response body
Addresses: brendan-kellam's question about regex rationale1 parent 8d9e4a6 commit 5922426
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
170 | 172 | | |
171 | 173 | | |
172 | 174 | | |
| |||
0 commit comments