Update driver.js

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

@ -267,14 +267,8 @@ 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) { } catch (error) {
Driver.error(error) Driver.error(error)
} }