Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: serving a zip file with Dancer2

by morgon (Priest)
on May 14, 2018 at 15:05 UTC ( [id://1214462]=note: print w/replies, xml ) Need Help??


in reply to serving a zip file with Dancer2

I can get it to work if I change
return $member->contents;
to this:
return $type =~ /^text/ ? decode_utf8($member->contents) : $member->contents;
But this is really ugly.

What is the proper way to do this?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-03-29 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found