From 9f3addb587e04de3fdace8ff2e373cc241297d84 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Tue, 30 Dec 2014 23:27:50 +0200 Subject: [PATCH] Fix remote documents in Zeal::Docset --- lib/Zeal/Docset.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Zeal/Docset.pm b/lib/Zeal/Docset.pm index d280a50..3a54621 100644 --- a/lib/Zeal/Docset.pm +++ b/lib/Zeal/Docset.pm @@ -45,7 +45,7 @@ sub _blessdocs { sub fetch { my ($self, $path) = @_; - return HTTP::Tiny->new->get($path) if $path =~ /^http:/s; + return HTTP::Tiny->new->get($path)->{content} if $path =~ /^http:/s; my $docroot = catdir $self->path, 'Contents', 'Resources', 'Documents'; $path = rel2abs $path, $docroot; scalar read_file $path -- 2.30.2