summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFayland Lam <fayland@gmail.com>2014-06-27 11:08:58 +0800
committerFayland Lam <fayland@gmail.com>2014-06-27 11:08:58 +0800
commita7848d291c797b1924349ef661755e713932c008 (patch)
treeedced071fe67539eda510ba134dc15ad7c5e6792
parenta8669a78091e84217b32b721c342035fae189656 (diff)
use decoded_content
-rw-r--r--lib/Net/GitHub/V3/Repos.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Net/GitHub/V3/Repos.pm b/lib/Net/GitHub/V3/Repos.pm
index 501246c..d31211d 100644
--- a/lib/Net/GitHub/V3/Repos.pm
+++ b/lib/Net/GitHub/V3/Repos.pm
@@ -83,7 +83,7 @@ sub upload_asset {
my $data;
if ($res->header('Content-Type') and $res->header('Content-Type') =~ 'application/json') {
- my $json = $res->content;
+ my $json = $res->decoded_content;
$data = eval { $self->json->jsonToObj($json) };
unless ($data) {
# We tolerate bad JSON for errors,