mirror of
https://github.com/apache/httpd.git
synced 2026-01-26 19:01:35 +03:00
Fix for a bug that I introduced when eliminating the single-byte
reads in mod_cgi: eof wasn't treated as an error condition when reading the script headers, so we were delivering a 200 when a CGI script produced no output. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94342 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -636,7 +636,7 @@ static int getsfunc_BRIGADE(char *buf, int len, void *arg)
|
||||
|
||||
rv = apr_bucket_read(e, &bucket_data, &bucket_data_len,
|
||||
APR_BLOCK_READ);
|
||||
if (!APR_STATUS_IS_SUCCESS(rv)) {
|
||||
if (!APR_STATUS_IS_SUCCESS(rv) || (bucket_data_len == 0)) {
|
||||
return 0;
|
||||
}
|
||||
src = bucket_data;
|
||||
|
||||
Reference in New Issue
Block a user