summaryrefslogtreecommitdiff
path: root/lib/SlackBuild/URI.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/SlackBuild/URI.pm')
-rw-r--r--lib/SlackBuild/URI.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/SlackBuild/URI.pm b/lib/SlackBuild/URI.pm
index b0d6724..93fa9ef 100644
--- a/lib/SlackBuild/URI.pm
+++ b/lib/SlackBuild/URI.pm
@@ -77,7 +77,7 @@ sub download {
my $result = new SlackBuild::Download($self,
success => $response->is_success);
if ($response->is_success) {
- $result->content_type(scalar($response->content_type));
+ $result->content_type(($response->content_type)[0]);
} else {
$self->logger->error("$self: " . $response->status_line);
}

Return to:

Send suggestions and report system problems to the System administrator.