opnsense-ports/www/mod_fastcgi/files/patch-mod_fastcgi.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

32 lines
1.1 KiB
C

--- mod_fastcgi.c.orig
+++ mod_fastcgi.c
@@ -753,6 +753,11 @@
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)
{
ap_log_rerror(FCGI_LOG_ERR_ERRNO, r, "FastCGI: comm with server "
- "\"%s\" aborted: select() failed", fr->fs_path);
+ "\"%s\" aborted: select() failed: \"%s\"", fr->fs_path, strerror(errno));
state = STATE_ERROR;
break;
}
@@ -2298,7 +2303,7 @@
else
{
ap_log_rerror(FCGI_LOG_ERR, r, "FastCGI: comm with server "
- "\"%s\" aborted: read failed", fr->fs_path);
+ "\"%s\" aborted: read failed: \"%s\"", fr->fs_path, strerror(errno));
state = STATE_ERROR;
break;
}