X-Git-Url: http://git.home-dn.net/?p=manu%2Fsuphp.git;a=blobdiff_plain;f=src%2Fapache2%2Fmod_suphp.c;h=c330844facd7cf49b13bec4e628d4fb40e0eee19;hp=d0e0985480d01ddb93879c87c29832b49628d1c2;hb=47bcf8ba77fa8011f9be728c23dbe6915d70251b;hpb=1d5c20a335c25ab89adf2e0d3d74c810b679e719 diff --git a/src/apache2/mod_suphp.c b/src/apache2/mod_suphp.c index d0e0985..c330844 100644 --- 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) { - const char *dst_end = buf + len; + const char *dst_end = buf + len - 1; 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; - 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);