Fix remote documents in Zeal::Docset
[zeal.git] / 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.009609 seconds and 4 git commands to generate.