diff --git a/DarkSkyAPI.pm b/DarkSkyAPI.pm index 2aa0813..d27cfed 100644 --- a/DarkSkyAPI.pm +++ b/DarkSkyAPI.pm @@ -168,7 +168,7 @@ sub _RetrieveDataFromDarkSky($) { . $self->{lang} . '&units=auto'; - if ( $self->{key} eq 'demo' ) + if ( lc($self->{key}) eq 'demo' ) { _RetrieveDataFinished($paramRef,undef,DEMODATA); } else { main::HttpUtils_NonblockingGet($paramRef); } }