X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FRequest.pm;h=ec7a96ade50458466c7dce37e53da3aa44cc0c3d;hp=099b13713dcd02dfcf155bad019b9291f314bb0c;hb=6680c772eaa987eafdb32e9437fd2d649dc914d9;hpb=66e67eb66f6271135230e9444ea9b4ecc57062f5 diff --git a/lib/Catalyst/Request.pm b/lib/Catalyst/Request.pm index 099b137..ec7a96a 100644 --- a/lib/Catalyst/Request.pm +++ b/lib/Catalyst/Request.pm @@ -6,6 +6,7 @@ use utf8; use URI::http; use URI::https; use URI::QueryParam; +use HTTP::Headers; use Moose; @@ -26,6 +27,9 @@ has headers => ( is => 'rw', isa => 'HTTP::Headers', handles => [qw(content_encoding content_length content_type header referer user_agent)], + default => sub { HTTP::Headers->new() }, + required => 1, + lazy => 1, ); has _context => ( @@ -54,7 +58,7 @@ has uploads => ( before uploads => sub { my ($self) = @_; - $self->_context->prepare_body; + #$self->_context->prepare_body; }; has parameters => ( @@ -66,7 +70,7 @@ has parameters => ( before parameters => sub { my ($self, $params) = @_; - $self->_context->prepare_body(); + #$self->_context->prepare_body(); if ( $params && !ref $params ) { $self->_context->log->warn( "Attempt to retrieve '$params' with req->params(), " .