Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: serving a zip file with Dancer2

by Anonymous Monk
on May 14, 2018 at 17:37 UTC ( #1214480=note: print w/replies, xml ) Need Help??

in reply to serving a zip file with Dancer2

Start by using a browser-side debugger to s-e-e what the HTML response including headers actually looks like when it finally arrives.

Replies are listed 'Best First'.
Re^2: serving a zip file with Dancer2
by Your Mother (Archbishop) on May 14, 2018 at 17:51 UTC

    Could you recommend your favorite "browser-side debugger" and give us pointers for how you would use it in this case? The more specific, the more helpful.

Re^2: serving a zip file with Dancer2
by morgon (Priest) on May 14, 2018 at 17:44 UTC
    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?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2021-09-20 23:59 GMT
Find Nodes?
    Voting Booth?

    No recent polls found