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