SOURCES: lighttpd-mod_compress-disable-bzip2.patch - only compress.allowed-...
glen
glen at pld-linux.org
Mon Sep 22 16:10:59 CEST 2008
Author: glen Date: Mon Sep 22 14:10:59 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- only compress.allowed-encodings
---- Files affected:
SOURCES:
lighttpd-mod_compress-disable-bzip2.patch (1.12 -> 1.13)
---- Diffs:
================================================================
Index: SOURCES/lighttpd-mod_compress-disable-bzip2.patch
diff -u SOURCES/lighttpd-mod_compress-disable-bzip2.patch:1.12 SOURCES/lighttpd-mod_compress-disable-bzip2.patch:1.13
--- SOURCES/lighttpd-mod_compress-disable-bzip2.patch:1.12 Mon Sep 22 15:30:49 2008
+++ SOURCES/lighttpd-mod_compress-disable-bzip2.patch Mon Sep 22 16:10:53 2008
@@ -1,5 +1,5 @@
---- lighttpd-1.4.19/src/mod_compress.c 2008-09-22 14:24:00.738911820 +0300
-+++ lighttpd-1.4.19/src/mod_compress.c 2008-09-22 16:24:49.930179728 +0300
+--- lighttpd-1.4.19/src/mod_compress.c 2008-09-22 16:24:49.930179728 +0300
++++ lighttpd-1.4.19/src/mod_compress.c 2008-09-22 17:02:36.097001825 +0300
@@ -49,6 +49,7 @@
buffer *compress_cache_dir;
array *compress;
@@ -8,16 +8,15 @@
} plugin_config;
typedef struct {
-@@ -154,6 +155,8 @@
+@@ -154,6 +155,7 @@
{ "compress.cache-dir", NULL, T_CONFIG_STRING, T_CONFIG_SCOPE_CONNECTION },
{ "compress.filetype", NULL, T_CONFIG_ARRAY, T_CONFIG_SCOPE_CONNECTION },
{ "compress.max-filesize", NULL, T_CONFIG_SHORT, T_CONFIG_SCOPE_CONNECTION },
-+ { "compress.allowed_encodings", NULL, T_CONFIG_ARRAY, T_CONFIG_SCOPE_CONNECTION },
+ { "compress.allowed-encodings", NULL, T_CONFIG_ARRAY, T_CONFIG_SCOPE_CONNECTION },
{ NULL, NULL, T_CONFIG_UNSET, T_CONFIG_SCOPE_UNSET }
};
-@@ -161,15 +164,19 @@
+@@ -161,15 +163,18 @@
for (i = 0; i < srv->config_context->used; i++) {
plugin_config *s;
@@ -33,11 +32,10 @@
cv[1].destination = s->compress;
cv[2].destination = &(s->compress_max_filesize);
+ cv[3].destination = encodings_arr; /* temp array for allowed encodings list */
-+ cv[4].destination = encodings_arr; /* temp array for allowed encodings list */
p->config_storage[i] = s;
-@@ -177,6 +184,39 @@
+@@ -177,6 +182,39 @@
return HANDLER_ERROR;
}
@@ -77,7 +75,7 @@
if (!buffer_is_empty(s->compress_cache_dir)) {
struct stat st;
mkdir_recursive(s->compress_cache_dir->ptr);
-@@ -587,6 +627,7 @@
+@@ -587,6 +625,7 @@
PATCH(compress_cache_dir);
PATCH(compress);
PATCH(compress_max_filesize);
@@ -85,18 +83,16 @@
/* skip the first, the global context */
for (i = 1; i < srv->config_context->used; i++) {
-@@ -606,6 +647,10 @@
+@@ -606,6 +645,8 @@
PATCH(compress);
} else if (buffer_is_equal_string(du->key, CONST_STR_LEN("compress.max-filesize"))) {
PATCH(compress_max_filesize);
-+ } else if (buffer_is_equal_string(du->key, CONST_STR_LEN("compress.allowed_encodings"))) {
-+ PATCH(allowed_encodings);
+ } else if (buffer_is_equal_string(du->key, CONST_STR_LEN("compress.allowed-encodings"))) {
+ PATCH(allowed_encodings);
}
}
}
-@@ -668,27 +713,21 @@
+@@ -668,27 +709,21 @@
if (NULL != (ds = (data_string *)array_get_element(con->request.headers, "Accept-Encoding"))) {
int accept_encoding = 0;
char *value = ds->value->ptr;
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/lighttpd-mod_compress-disable-bzip2.patch?r1=1.12&r2=1.13&f=u
More information about the pld-cvs-commit
mailing list