aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-03-19 16:49:20 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-03-19 16:49:20 +0000
commit9c6fe361b23b04962b3e5243920f5a1b55503ba4 (patch)
tree2d80bc469776e28883bef540df972e7e6c27a9bc
parentcca90a9e87513c1294944539f59326795910b5fb (diff)
Use mech->content, as mech->response->content is pre-gunzipping.
-rw-r--r--perllib/FixMyStreet/TestMech.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/TestMech.pm b/perllib/FixMyStreet/TestMech.pm
index addbb1752..e91c6a1d6 100644
--- a/perllib/FixMyStreet/TestMech.pm
+++ b/perllib/FixMyStreet/TestMech.pm
@@ -243,7 +243,7 @@ sub import_errors {
my @errors = #
grep { $_ } #
map { s{^ERROR:\s*(.*)$}{$1}g ? $_ : undef; } #
- split m/\n+/, $mech->response->content;
+ split m/\n+/, $mech->content;
return \@errors;
}