comparison fastcgi_request_buffering.t @ 1791:42d9fd20eeb6

Tests: avoid uninitialized warnings in fastcgi tests.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 19 Sep 2022 14:13:22 +0400
parents 1e79a9613813
children
comparison
equal deleted inserted replaced
1790:ba625d5a02e4 1791:42d9fd20eeb6
348 my $count; 348 my $count;
349 my $body; 349 my $body;
350 350
351 while( $request->Accept() >= 0 ) { 351 while( $request->Accept() >= 0 ) {
352 $count++; 352 $count++;
353 read(STDIN, $body, $ENV{'CONTENT_LENGTH'}); 353 read(STDIN, $body, $ENV{'CONTENT_LENGTH'} || 0);
354 354
355 if ($ENV{REQUEST_URI} eq '/error_page') { 355 if ($ENV{REQUEST_URI} eq '/error_page') {
356 print "Status: 404 Not Found" . CRLF . CRLF; 356 print "Status: 404 Not Found" . CRLF . CRLF;
357 next; 357 next;
358 } 358 }