Commit 2c9417b
authored
Fix header overwrite in modular API template. (#168)
If `requestParams` contained headers, the whole headers would be replaced by these ones, wiping out the automatic `Content-Type` header.
Putting the `requestParams` spread first fixes it, as the re-definition of `headers` will overwrite them.1 parent 45b93bc commit 2c9417b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
172 | 173 | | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
176 | | - | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
0 commit comments