in reply to serving a zip file with Dancer2
Hi, just a guess: do you have the charset set in your config?
If so, the output may be getting double-encoded since you add a charset manually in your Content-Type header?charset: UTF-8
As for idiomatic, I don't work with compressed files myself but I can say that middlewares are ususally the right approach to this type of intermediate content handling, see eg Plack::Middleware::Deflater (which compresses outgoing content).
Hope this helps!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: serving a zip file with Dancer2
by morgon (Priest) on May 14, 2018 at 14:33 UTC |