We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa47e35 commit 37fe259Copy full SHA for 37fe259
lib/HTTP/Message/PSGI.pm
@@ -16,8 +16,9 @@ my $FALSE = !$TRUE;
16
sub req_to_psgi {
17
my $req = shift;
18
19
- Carp::croak("Request is not HTTP::Request: $req")
20
- unless Scalar::Util::blessed $req && $req->isa('HTTP::Request');
+ unless (Scalar::Util::blessed($req) && $req->isa('HTTP::Request')) {
+ Carp::croak("Request is not HTTP::Request: $req");
21
+ }
22
23
# from HTTP::Request::AsCGI
24
my $host = $req->header('Host');
0 commit comments