diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Web/Request.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Web/Request.pm b/lib/Web/Request.pm index f889f62..6d3538b 100644 --- a/lib/Web/Request.pm +++ b/lib/Web/Request.pm @@ -422,7 +422,8 @@ sub new_response { Class::Load::load_class($self->response_class); my $res = $self->response_class->new(@_); - $res->_encoding_obj($self->_encoding_obj); + $res->_encoding_obj($self->_encoding_obj) + if $self->has_encoding; return $res; } |