diff --git a/Request.ts b/Request.ts index 484fb1d..be58528 100644 --- a/Request.ts +++ b/Request.ts @@ -35,7 +35,11 @@ export class Request { // Fetch Response try { - const resp = await fetch(this.url) + const resp = await fetch(this.url, { + headers: { + "Content-Type": "text/plain" + } + }) if (resp.status !== 200) { throw new Error(`Error request ended with the code (${resp.status})`) }