Commit e3062f7
[Fix]
Previously the null branch returned the raw `encoder(prefix, ...)` output
(or raw `prefix`) without running it through `formatter`.
With `format: 'RFC1738'` this caused keys containing spaces to serialize as
`%20` in strict-null mode while the normal primitive path produced `+`,
yielding inconsistent output for the same key.
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: DeepView Autofix <276251120+deepview-autofix@users.noreply.github.com>
Co-Authored-By: Nikita Skovoroda <chalkerx@gmail.com>
Co-Authored-By: Jordan Harband <ljharb@gmail.com>
Signed-off-by: Nikita Skovoroda <chalkerx@gmail.com>stringify: apply formatter to encoded key under strictNullHandling
1 parent 0c180a4 commit e3062f7
2 files changed
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1140 | 1140 | | |
1141 | 1141 | | |
1142 | 1142 | | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
1143 | 1165 | | |
1144 | 1166 | | |
1145 | 1167 | | |
| |||
0 commit comments