Changeset View
Changeset View
Standalone View
Standalone View
head/www/mod_fastcgi/files/patch-mod_fastcgi.c
--- mod_fastcgi.c.orig | --- mod_fastcgi.c.orig 2017-03-29 21:11:44 UTC | ||||
+++ mod_fastcgi.c | +++ mod_fastcgi.c | ||||
@@ -753,6 +753,11 @@ | @@ -2219,7 +2219,7 @@ SERVER_SEND: | ||||
continue; | |||||
} | |||||
+ if (strcasecmp(name, "Content-Length") == 0) { | |||||
+ ap_set_content_length(r, strtol(value, NULL, 10)); | |||||
+ continue; | |||||
+ } | |||||
+ | |||||
/* If the script wants them merged, it can do it */ | |||||
ap_table_add(r->err_headers_out, name, value); | |||||
continue; | |||||
@@ -2215,7 +2220,7 @@ | |||||
if (select_status < 0) | if (select_status < 0) | ||||
{ | { | ||||
ap_log_rerror(FCGI_LOG_ERR_ERRNO, r, "FastCGI: comm with server " | ap_log_rerror(FCGI_LOG_ERR_ERRNO, r, "FastCGI: comm with server " | ||||
- "\"%s\" aborted: select() failed", fr->fs_path); | - "\"%s\" aborted: select() failed", fr->fs_path); | ||||
+ "\"%s\" aborted: select() failed: \"%s\"", fr->fs_path, strerror(errno)); | + "\"%s\" aborted: select() failed: \"%s\"", fr->fs_path, strerror(errno)); | ||||
state = STATE_ERROR; | state = STATE_ERROR; | ||||
break; | break; | ||||
} | } | ||||
@@ -2298,7 +2303,7 @@ | @@ -2302,7 +2302,7 @@ SERVER_SEND: | ||||
else | else | ||||
{ | { | ||||
ap_log_rerror(FCGI_LOG_ERR, r, "FastCGI: comm with server " | ap_log_rerror(FCGI_LOG_ERR, r, "FastCGI: comm with server " | ||||
- "\"%s\" aborted: read failed", fr->fs_path); | - "\"%s\" aborted: read failed", fr->fs_path); | ||||
+ "\"%s\" aborted: read failed: \"%s\"", fr->fs_path, strerror(errno)); | + "\"%s\" aborted: read failed: \"%s\"", fr->fs_path, strerror(errno)); | ||||
state = STATE_ERROR; | state = STATE_ERROR; | ||||
break; | break; | ||||
} | } |