Skip Menu |

This queue is for tickets about the Catalyst-Runtime CPAN distribution.

Report information
The Basics
Id: 55976
Status: resolved
Priority: 0/
Queue: Catalyst-Runtime

Owner: rafl [...]
Requestors: andy [...]

Bug Information
Severity: Important
Broken in: 5.80021
Fixed in: (no value)

Subject: Uploads: Catalyst::Engine::prepare_uploads calls HTTP::Headers in array context,should be scalar
Download (untitled) / with headers
text/plain 870b
In Uploads: Catalyst::Engine::prepare_uploads, suggest amending: my $u = Catalyst::Request::Upload->new ( size => $upload->{size}, type => $headers->content_type, headers => $headers, tempname => $upload->{tempname}, filename => $upload->{filename}, ); to my $u = Catalyst::Request::Upload->new ( size => $upload->{size}, type => scalar($headers->content_type), headers => $headers, tempname => $upload->{tempname}, filename => $upload->{filename}, ); because in some situations $headers->content_type can return an array of 2 values (instead of the expected just one scalar) and that screws up the Catalyst::Request::Upload object completely. Thanks! Andy.
Fixed in svn. Will be part of the next release.
Fixed in 5.80022

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to