Bug 31306: Allow to pass params and attributes to search_ordered
[srvgit] / errors / 400.pl
index e3cfc5e..0bddd49 100755 (executable)
@@ -38,7 +38,7 @@ $template->param (
     errno => 400,
 );
 my $status = '400 Bad Request';
-if ( any { /(^psgi\.|^plack\.)/i } keys %ENV ) {
+if ( C4::Context->is_internal_PSGI_request() ) {
     $status = '200 OK';
 }
 output_with_http_headers $query, $cookie, $template->output, 'html', $status;