mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 04:56:07 +00:00
fix: content-type
This commit is contained in:
parent
bcadf6022c
commit
2473f673bc
@ -144,7 +144,7 @@ export class ApiHandler {
|
||||
this.clearResetInterval(route);
|
||||
next();
|
||||
if (result.length > 0) {
|
||||
if (response.headers.get('content-type') === 'application/json') {
|
||||
if (response.headers.get('content-type')?.includes('application/json')) {
|
||||
try {
|
||||
result = JSON.parse(result);
|
||||
} catch (err) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user