use strict;
use base 'HTTP::Body';
use bytes;
+use IO::Handle::Util;
our $DECODE = qr/%([0-9a-fA-F]{2})/;
my $self = shift;
return unless $self->length == $self->content_length;
+
+ # Store a copy of the raw request that the body() method can return
+ # see RT #111876
+ $self->body(IO::Handle::Util::io_from_any($self->{buffer}));
# I tested parsing this using APR::Request, but perl is faster
# Pure-Perl 2560/s