From: Marius Gavrilescu Date: Tue, 30 Dec 2014 21:27:50 +0000 (+0200) Subject: Fix remote documents in Zeal::Docset X-Git-Tag: 0.000_002~4 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=9f3addb587e04de3fdace8ff2e373cc241297d84;p=zeal.git Fix remote documents in Zeal::Docset --- 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