Skip to content

Commit

Permalink
bin/http-request
Browse files Browse the repository at this point in the history
  • Loading branch information
sergot committed Jun 6, 2014
1 parent 2b0e620 commit d9b4713
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bin/http-request
@@ -1,4 +1,6 @@
#!/usr/bin/env perl6
use HTTP::UserAgent :simple;


sub MAIN($url) {
getprint($url);
}
2 changes: 1 addition & 1 deletion lib/HTTP/UserAgent.pm6
Expand Up @@ -51,7 +51,7 @@ sub get(Str $url) is export(:simple) {
my $ua = HTTP::UserAgent.new;
my $response = $ua.get($url);

return $response.content;
return $response.decoded-content;
}

sub head(Str $url) is export(:simple) {
Expand Down

0 comments on commit d9b4713

Please sign in to comment.