]> iEval git - www-backpacktf.git/blobdiff - lib/WWW/BackpackTF.pm
Bump version and update Changes
[www-backpacktf.git] / lib / WWW / BackpackTF.pm
index 5e33b57d67e0055394290ac18fd4d5d7e83003ce..015d9fa3a810121009503f7de23cc33c2b0200e6 100644 (file)
@@ -4,7 +4,7 @@ use 5.014000;
 use strict;
 use warnings;
 use parent qw/Exporter/;
-our $VERSION = '0.000_002';
+our $VERSION = '0.000_003';
 our @EXPORT_OK = qw/TF2 DOTA2/;
 
 use constant +{
@@ -31,7 +31,7 @@ use WWW::BackpackTF::User;
 
 sub request {
        my ($self, $url, %params) = @_;
-       $params{key} = $self->{key};
+       $params{key} = $self->{key} if $self->{key};
        $url = $self->{base} . $url;
        $url .= "&$_=$params{$_}" for keys %params;
        my $response = decode_json(get $url)->{response};
This page took 0.018651 seconds and 4 git commands to generate.