Skip to content

Commit

Permalink
Display Reason
Browse files Browse the repository at this point in the history
  • Loading branch information
miyagawa committed Apr 8, 2010
1 parent f99c9ef commit ad0cbd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Sunaba/Runner.pm
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ sub to_app {
my($body, $hdr) = @_;

if ($hdr->{Status} =~ /^[45]/) {
return $respond->([ 502, ["Content-Type", "text/plain"], [ "Bad gateway: $hdr->{Status}" ] ]);
return $respond->([ 502, ["Content-Type", "text/plain"], [ "Bad gateway: $hdr->{Status} $hdr->{Reason}" ] ]);
}

my $json = ($body =~ /^sunaba\((.*)\);$/s)[0]
Expand Down

0 comments on commit ad0cbd9

Please sign in to comment.