datarightsfinder / website

Find, understand and use information from privacy notices
https://datarightsfinder.org
MIT License
2 stars 4 forks source link

Fix PDF detection #55

Open ihutc opened 6 years ago

ihutc commented 6 years ago

The is-html library used to detect whether a privacy policy is HTML or PDF has a bug that causes a PDF to be incorrectly identified as HTML.

I've taken out is-html and used the Content-Type header returned by the request library instead.