Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Catalyst::Request::Upload inside-out-object weirdness

by JavaFan (Canon)
on Mar 26, 2010 at 16:23 UTC ( #831188=note: print w/replies, xml ) Need Help??


in reply to Re: Catalyst::Request::Upload inside-out-object weirdness
in thread Catalyst::Request::Upload inside-out-object weirdness

which seems to suggest maybe the problem is with HTTP::Headers.
Doubtful. To me, it seems the mistake is in the call to Catalyst::Request::Upload. It assumes that the call to $headers->content_type returns one value (or another odd amount) when called in list context. But that assumption is false; it may return an even number of values as well.

It looks to be that something like

type => ($headers->content_type)[0],
is an improvement.

Replies are listed 'Best First'.
Re^3: Catalyst::Request::Upload inside-out-object weirdness
by andye (Curate) on Mar 26, 2010 at 16:41 UTC
    yeah, amended to type => scalar($headers->content_type) for next release, thanks to Florian Ragwitz @ Catalyst for quick response.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://831188]
help
Chatterbox?
and the fog begins to lift...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2018-07-20 11:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (428 votes). Check out past polls.

    Notices?