Commit 0c404fd
committed
Fix JSON Content-Type: use 'application/json' without charset=utf-8
Gin's c.JSON() appends '; charset=utf-8' to Content-Type which fails
the validator's exact match check. Switched to manual json.Marshal +
c.Data() with explicit Content-Type header.1 parent 9338e54 commit 0c404fd
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
191 | 193 | | |
192 | 194 | | |
193 | 195 | | |
| |||
263 | 265 | | |
264 | 266 | | |
265 | 267 | | |
266 | | - | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
267 | 271 | | |
268 | 272 | | |
269 | 273 | | |
| |||
0 commit comments