summaryrefslogtreecommitdiffstats
path: root/lib/Web/Request.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Web/Request.pm')
-rw-r--r--lib/Web/Request.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Web/Request.pm b/lib/Web/Request.pm
index a895ef2..597530e 100644
--- a/lib/Web/Request.pm
+++ b/lib/Web/Request.pm
@@ -478,6 +478,8 @@ sub content {
my $fh = $self->_input or return '';
my $cl = $self->content_length or return '';
+ $fh->seek(0, 0); # just in case middleware/apps read it without seeking back
+
$fh->read(my $content, $cl, 0);
$fh->seek(0, 0);