Merge pull request #3730 from kyletaylored/feature/2971-detect-plain-text

Add plain/text detection
main
Elbert Alias 4 years ago committed by GitHub
commit 76890d3e60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -267,13 +267,8 @@ const Driver = {
)
})
if (
headers['content-type'] &&
/\/x?html/.test(headers['content-type'][0])
) {
await Driver.onDetect(request.url, analyze({ headers }))
}
}
} catch (error) {
Driver.error(error)
}