aboutsummaryrefslogtreecommitdiff
path: root/Plugin
diff options
context:
space:
mode:
Diffstat (limited to 'Plugin')
-rw-r--r--Plugin/URL_Title.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/Plugin/URL_Title.pm b/Plugin/URL_Title.pm
index 19b7437..cb7474c 100644
--- a/Plugin/URL_Title.pm
+++ b/Plugin/URL_Title.pm
@@ -53,8 +53,12 @@ sub get_title
my $response = $http->get($url);
if (!$response->{success}) {
- chomp $response->{content};
- return (undef, "Error: HTTP client: $response->{reason} ($response->{content})");
+ if ($response->{status} == 599) {
+ chomp $response->{content};
+ return (undef, "Error: HTTP client: $response->{content}");
+ } else {
+ return (undef, "Error: HTTP $response->{status} ($response->{reason})");
+ }
}
if (not $response->{headers}->{"content-type"}) {