Update driver.js

main
Elbert Alias 4 years ago committed by GitHub
parent 34550300e6
commit 2fae382a12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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