]> iEval git - zeal.git/commitdiff
Fix remote documents in Zeal::Docset
authorMarius Gavrilescu <marius@ieval.ro>
Tue, 30 Dec 2014 21:27:50 +0000 (23:27 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Tue, 30 Dec 2014 21:27:50 +0000 (23:27 +0200)
lib/Zeal/Docset.pm

index d280a505e303fb7177a6109e38e571d5d6011c11..3a54621a2cade5ea3c9be240f58116e8a4fa1355 100644 (file)
@@ -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
This page took 0.027478 seconds and 4 git commands to generate.