Subject: | Bug: on_content_load must be a positive number |
Date: | Sun, 16 Apr 2017 17:27:07 +0200 |
To: | bug-archive-har [...] rt.cpan.org |
From: | me open <theroadisopen [...] gmail.com> |
NAME Archive::Har - Provides an interface to HTTP Archive (HAR) files
VERSION Version '0.20'
$ perl -v
This is perl 5, version 22, subversion 1 (v5.22.1) built for
x86_64-linux-gnu-thread-multi
$ uname -a
Linux 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017 x86_64
x86_64 x86_64 GNU/Linux
(0)
Details about your operating environment that might be related to the issue
being described
Source of the HAR file is Google Chrome
Version 57.0.2987.98 (64-bit)
(1)
Exact cut and pasted error or warning messages:
on_content_load must be a positive number or -1 at
/home/my_user/perl5/lib/perl5/Archive/Har/Page.pm line 26.
(2)
The shortest, clearest code you can manage to write which reproduces the
bug described.
$ perl -MJSON::PP -MArchive::Har -e 'my $input_har_json = do {local $/ =
undef;<>;}; my $har_stringified = Archive::Har->new();
$har_stringified->string($input_har_json); print $har_stringified, "\n";'
har_lxer.har
on_content_load must be a positive number or -1 at
/home/my_user/perl5/lib/perl5/Archive/Har/Page.pm line 26.
(3)
A patch against the latest released version of this distribution which
fixes this bug.
< if ( $new =~ /^(\d+\.\d+|-1)$/smx ) { # changed, fixed the
issue for me
---
Show quoted text
> if ( $new =~ /^(\d+|-1)$/smx ) { # current code