Skip to content

Commit

Permalink
the hash key is a string, so make it one for the lookup
Browse files Browse the repository at this point in the history
This unbreaks HTTP::Status on parrot.
  • Loading branch information
FROGGS committed Aug 30, 2014
1 parent 607b35d commit 8ddd995
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/HTTP/Status.pm6
Expand Up @@ -79,8 +79,8 @@ my %HTTPCODES = (
);

our sub get_http_status_msg ($code) is export {
if %HTTPCODES{$code}:exists {
return %HTTPCODES{$code};
if %HTTPCODES{~$code}:exists {
return %HTTPCODES{~$code};
}
return 'Unknown';
}
Expand Down

0 comments on commit 8ddd995

Please sign in to comment.