maintain $env->{Web::Dispatch.original_env} for ParamParser to cache in
[catagits/Web-Simple.git] / lib / Web / Simple / Application.pm
index e4ef3db..88f025e 100644 (file)
@@ -89,7 +89,7 @@ sub _test_request_spec_to_http_request {
 
   my $request = HTTP::Request->new($method => $path);
 
-  if ($method eq 'POST' or $method eq 'PUT' and @rest) {
+  if (($method eq 'POST' or $method eq 'PUT') and @rest) {
     my $content = do {
       require URI;
       my $url = URI->new('http:');