]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1470343 - GitHub PR diff is not decoded in UTF-8
authorKohei Yoshino <kohei.yoshino@gmail.com>
Fri, 22 Jun 2018 02:16:23 +0000 (22:16 -0400)
committerdklawren <dklawren@users.noreply.github.com>
Fri, 22 Jun 2018 02:16:23 +0000 (22:16 -0400)
extensions/BMO/Extension.pm

index 2d5d2b1829ff21e8dd793f7941c0ddd23ebe99ac..3b1c03eec2e8eded312c492a6ae730adf1c560a1 100644 (file)
@@ -1212,7 +1212,7 @@ sub _attachment_fetch_github_pr_diff {
         warn "Github fetch error: $pr_diff, " . $response->status_line;
         return "Error retrieving Github pull request diff for " . $self->data;
     }
-    return $response->content;
+    return $response->decoded_content;
 }
 
 # redirect automatically to github urls