Parcourir la source

allow piping in request bodies on STDIN

George Baugh il y a 4 mois
Parent
commit
d3af88be4b
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      call.pl

+ 2 - 1
call.pl

@@ -19,7 +19,8 @@ my %env = (
     QUERY_STRING   => $ARGV[2],
     REQUEST_URI    => "http://$host/".$ARGV[1],
     HTTP_HOST      => $host,
-    'psgi.errors'    => *STDERR,
+    'psgi.errors'  => *STDERR,
+    'psgi.input'   => *STDIN,
 );
 
 sub emit_error {