projects
/
manu
/
suphp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.6.1-1 release
[manu/suphp.git]
/
src
/
apache2
/
mod_suphp.c
diff --git
a/src/apache2/mod_suphp.c
b/src/apache2/mod_suphp.c
index
d0e0985
..
c330844
100644
(file)
--- a/
src/apache2/mod_suphp.c
+++ b/
src/apache2/mod_suphp.c
@@
-43,7
+43,7
@@
module AP_MODULE_DECLARE_DATA suphp_module;
static int suphp_bucket_read(apr_bucket *b, char *buf, int len)
{
static int suphp_bucket_read(apr_bucket *b, char *buf, int len)
{
- const char *dst_end = buf + len;
+ const char *dst_end = buf + len
- 1
;
char * dst = buf;
apr_status_t rv;
const char *bucket_data;
char * dst = buf;
apr_status_t rv;
const char *bucket_data;
@@
-612,7
+612,12
@@
static int suphp_handler(request_rec *r)
int ret;
const char *location;
int ret;
const char *location;
- if ((ret = ap_scan_script_header_err_brigade(r, bb, strbuf)) != APR_SUCCESS)
+ ret = ap_scan_script_header_err_brigade(r, bb, strbuf);
+ if (ret == HTTP_NOT_MODIFIED)
+ {
+ return ret;
+ }
+ else if (ret != APR_SUCCESS)
{
suphp_log_script_err(r, proc->err);
{
suphp_log_script_err(r, proc->err);