thrackle / express-zip

stream multiple files to the browser as a single zip, in pure node
MIT License
72 stars 18 forks source link

Fix for non-ascii filenames #14

Open yalanyali opened 6 years ago

yalanyali commented 6 years ago

Fixed "The header content contains invalid characters" error thrown by Express on non-ascii filenames according to: https://tools.ietf.org/html/rfc6266#section-6

thrackle commented 6 years ago

Thanks for the patch, @yalanyali! Looks like the tests are failing. If you want to resolve those I can merge, and/or I'll make a note to circle back and try to get those written and this merged a little later.

yalanyali commented 6 years ago

Well, I've changed the content-disposition string to support UTF-8 characters. Tests are failing because they're expecting a certain match. I'd have to change the tests in order for them to not fail, which is something I wouldn't do. I've been using my own branch of this library on my project and I feel like it's a decision the maintainer should make, so it's up to you. Thanks :)