Suppression lignes commentées.

This commit is contained in:
Fabrice PENHOËT 2021-10-11 16:49:18 +02:00
parent e829b881e8
commit 2482a65f04

View File

@ -67,16 +67,6 @@ export class ParserForJSON implements Parsers
if(parser._datasRemoteSource.url !== "")
{
const settings: {}=parser._datasRemoteSource.getFetchSettings();
/*
const headers=new Headers();
if(parser._datasRemoteSource.headers !== undefined)
{
for(let header of parser._datasRemoteSource.headers)
headers.append(header.key, header.value);
}
const credentials : RequestCredentials|undefined=(parser._datasRemoteSource.withCredentials) ? "include" : "omit";
const settings={ method: "GET", headers: headers, credentials: credentials };
*/
const response=await fetch(parser._datasRemoteSource.url, settings);
if (! response.ok)
throw new Error(errors.parserRemoteFail);