gardr / validator

MIT License
3 stars 0 forks source link

SVG and font files ignored when using zip upload #32

Closed pattan closed 9 years ago

pattan commented 10 years ago

If you upload a zip file containing an svg image or a .woff file, validator will throw request error.

Use this zip as a test. Only contains a index.html and a svg image.

sveisvei commented 10 years ago

We need to add SVG and WOFF here: https://github.com/gardr/validator-web/blob/master/lib/unzip.js#L17

(Btw, fonts will not work great in the current version of phantomJS, awaiting Phantom 2.0 for this to be tested properly.)

sveisvei commented 9 years ago

Will now serve svg and font-files, but phantomjs (the test enviroment) does not fully support fonts yet.