X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FHTTP%2FBody%2FMultiPart.pm;h=cecc5d670b7b4d2b8af775ef8b121e43c0ef592a;hb=2f14a49629be86b6adda6d74dbde16a592f15647;hp=41c7bab26b37722d1677d40c29d40f79df5e3c3a;hpb=f419f7c18c803f45ff089e5fb07b71be6518c624;p=catagits%2FHTTP-Body.git diff --git a/lib/HTTP/Body/MultiPart.pm b/lib/HTTP/Body/MultiPart.pm index 41c7bab..cecc5d6 100644 --- a/lib/HTTP/Body/MultiPart.pm +++ b/lib/HTTP/Body/MultiPart.pm @@ -300,8 +300,11 @@ sub handler { $self->upload( $part->{name}, $part ); } } + # If we have more than the content-disposition, we need to create a + # data key so that we don't waste the headers. else { $self->param( $part->{name}, $part->{data} ); + $self->part_data( $part->{name}, $part ) } } }