Missing header property
parent
2c7ab55759
commit
7692c8d94a
|
@ -38,7 +38,7 @@ export async function fetchHTML(url: string): Promise<Result<GenericAxiosError |
|
|||
const response = await fetchGETResponse(url);
|
||||
|
||||
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({
|
||||
id: 2,
|
||||
|
|
Loading…
Reference in New Issue