Fixed 304 status for fetchJson.
This commit is contained in:
parent
10943fc3ef
commit
c66d81e96f
|
@ -174,7 +174,7 @@ export function fetchJson(connection: string | ConnectionInfo, json?: string, pr
|
||||||
body = await response.text();
|
body = await response.text();
|
||||||
|
|
||||||
if (allow304 && response.status === 304) {
|
if (allow304 && response.status === 304) {
|
||||||
// Leave body as null
|
body = null;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
} else if (!response.ok) {
|
} else if (!response.ok) {
|
||||||
|
|
Loading…
Reference in New Issue