Add plain/text detection

fixes #2971
main
Kyle Taylor 4 years ago
parent 02601557d2
commit 34550300e6

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