SOURCES: lighttpd-proxy-fix-redirects.patch - finished
aredridel
aredridel at pld-linux.org
Fri Dec 30 11:15:29 CET 2005
Author: aredridel Date: Fri Dec 30 10:15:29 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- finished
---- Files affected:
SOURCES:
lighttpd-proxy-fix-redirects.patch (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SOURCES/lighttpd-proxy-fix-redirects.patch
diff -u SOURCES/lighttpd-proxy-fix-redirects.patch:1.1 SOURCES/lighttpd-proxy-fix-redirects.patch:1.2
--- SOURCES/lighttpd-proxy-fix-redirects.patch:1.1 Fri Dec 30 11:05:50 2005
+++ SOURCES/lighttpd-proxy-fix-redirects.patch Fri Dec 30 11:15:24 2005
@@ -22,7 +22,7 @@
ds->free = data_fastcgi_free;
diff -ur lighttpd-1.4.8-o/src/mod_proxy.c lighttpd-1.4.8/src/mod_proxy.c
--- lighttpd-1.4.8-o/src/mod_proxy.c 2005-11-18 05:29:36.000000000 -0700
-+++ lighttpd-1.4.8/src/mod_proxy.c 2005-12-30 03:01:51.000000000 -0700
++++ lighttpd-1.4.8/src/mod_proxy.c 2005-12-30 03:05:19.000000000 -0700
@@ -277,6 +277,7 @@
{ "host", NULL, T_CONFIG_STRING, T_CONFIG_SCOPE_CONNECTION }, /* 0 */
{ "port", NULL, T_CONFIG_SHORT, T_CONFIG_SCOPE_CONNECTION }, /* 1 */
@@ -57,7 +57,7 @@
+
+ host = strndup(con->request.http_host->ptr, strchr(con->request.http_host->ptr, ':') - con->request.http_host->ptr);
+
-+ if(strncasecmp(value, "http://", 7) == 0 && strncasecmp(value + 7, host, strlen(host)) == 0 && *(value + 7 + strlen(host)) == ':' && atoi(value + 7 + strlen(host) + 1) == hctx->host->port) {
++ if(hctx->host->fix_redirects && strncasecmp(value, "http://", 7) == 0 && strncasecmp(value + 7, host, strlen(host)) == 0 && *(value + 7 + strlen(host)) == ':' && atoi(value + 7 + strlen(host) + 1) == hctx->host->port) {
+ value = strchr(value + 7 + strlen(host), '/');
+ }
+
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/lighttpd-proxy-fix-redirects.patch?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list