Fixed 304 status for fetchJson.

This commit is contained in:
Richard Moore 2020-01-11 20:14:29 -05:00
parent 10943fc3ef
commit c66d81e96f
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651
1 changed files with 2 additions and 2 deletions

View File

@ -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) {