diff options
| author | Brian Pane <brianp@apache.org> | 2002-03-30 22:48:39 +0000 |
|---|---|---|
| committer | Brian Pane <brianp@apache.org> | 2002-03-30 22:48:39 +0000 |
| commit | 94de8923dba848c60553c4f3cd594f45875cc428 (patch) | |
| tree | d04b17c24f72157397426c3fd9bcfe43355e3ff0 /server/util_script.c | |
| parent | 140006b5b1d6cc056feb81781a5e2eed6bd6014b (diff) | |
| download | httpd-94de8923dba848c60553c4f3cd594f45875cc428.tar.gz | |
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
Diffstat (limited to 'server/util_script.c')
| -rw-r--r-- | server/util_script.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/util_script.c b/server/util_script.c index 7a790d577d..d5f6f893e1 100644 --- a/server/util_script.c +++ b/server/util_script.c @@ -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; |
