Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: serving a zip file with Dancer2

by morgon (Priest)
on May 14, 2018 at 17:44 UTC ( #1214482=note: print w/replies, xml ) Need Help??


in reply to Re: serving a zip file with Dancer2
in thread serving a zip file with Dancer2

I did.

And the headers were ok - they were identical to the psgi-version.

The problem (as I mentioned in another post) seems to be that while a plain psgi-app returns happily whatever you give it, Dancer seems to be a little cleverer which in this case gets in my way.

I need to explicitly decode the string as utf-8 to keep Dancer from encoding it again then it works.

I would be very interesting to learn if this is the proper way to do this though...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1214482]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2021-10-27 01:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (91 votes). Check out past polls.

    Notices?