Commit d1ef6a1
committed
fix: Always use "Content-Type: application/json" when contacting CivitAI
The previous algorithm only applied the correct API Content-Type (JSON) when a token was available.
We now always apply the Content-Type, to ensure that we always get the expected responses.1 parent 7b1a7b7 commit d1ef6a1
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
224 | 223 | | |
| 224 | + | |
| 225 | + | |
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
| |||
0 commit comments