Missing header property

pull/73/head
MillenniumEarl 2021-03-02 16:18:09 +01:00
parent 2c7ab55759
commit 7692c8d94a
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ export async function fetchHTML(url: string): Promise<Result<GenericAxiosError |
const response = await fetchGETResponse(url); const response = await fetchGETResponse(url);
if (response.isSuccess()) { if (response.isSuccess()) {
const isHTML = response.value["content-type"].includes("text/html"); const isHTML = response.value.headers["content-type"].includes("text/html");
const unexpectedResponseError = new UnexpectedResponseContentType({ const unexpectedResponseError = new UnexpectedResponseContentType({
id: 2, id: 2,