]> git.pld-linux.org Git - packages/lighttpd.git/commitdiff
- compress.allowed-encodings alias
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 22 Sep 2008 13:30:50 +0000 (13:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    lighttpd-mod_compress-disable-bzip2.patch -> 1.12
    lighttpd-mod_compress.conf -> 1.6

lighttpd-mod_compress-disable-bzip2.patch
lighttpd-mod_compress.conf

index 3bdd3ee532210767cd49531a9d93ea098bddd7dd..ce51616ec4b421e761466e95b85eab9b859ad629 100644 (file)
@@ -1,5 +1,5 @@
---- lighttpd-1.4.19/src/mod_compress.c 2008-09-19 17:24:45.542342957 +0300
-+++ 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 14:24:00.738911820 +0300
++++ lighttpd-1.4.19/src/mod_compress.c 2008-09-22 16:24:49.930179728 +0300
 @@ -49,6 +49,7 @@
        buffer *compress_cache_dir;
        array  *compress;
@@ -8,15 +8,16 @@
  } plugin_config;
  
  typedef struct {
-@@ -154,6 +155,7 @@
+@@ -154,6 +155,8 @@
                { "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 +163,18 @@
+@@ -161,15 +164,19 @@
  
        for (i = 0; i < srv->config_context->used; i++) {
                plugin_config *s;
                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 +182,39 @@
+@@ -177,6 +184,39 @@
                        return HANDLER_ERROR;
                }
  
@@ -75,7 +77,7 @@
                if (!buffer_is_empty(s->compress_cache_dir)) {
                        struct stat st;
                        mkdir_recursive(s->compress_cache_dir->ptr);
-@@ -587,6 +625,7 @@
+@@ -587,6 +627,7 @@
        PATCH(compress_cache_dir);
        PATCH(compress);
        PATCH(compress_max_filesize);
  
        /* skip the first, the global context */
        for (i = 1; i < srv->config_context->used; i++) {
-@@ -606,6 +645,8 @@
+@@ -606,6 +647,10 @@
                                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 +709,21 @@
+@@ -668,27 +713,21 @@
                        if (NULL != (ds = (data_string *)array_get_element(con->request.headers, "Accept-Encoding"))) {
                                int accept_encoding = 0;
                                char *value = ds->value->ptr;
  Options
  =======
  
-+compress.allowed_encodings
++compress.allowed-encodings
 +  override default set of allowed encodings
 +
 +  e.g.: ::
-+    compress.allowed_encodings = ("bzip2", "gzip", "deflate")
++    compress.allowed-encodings = ("bzip2", "gzip", "deflate")
 +
  compress.cache-dir
    name of the directory where compressed content will be cached
index ce65a8b4e3d204c67811859df3e96eb7efb83e7f..15cd368c705e87a7bca3f17ac09ca39e1b385dad 100644 (file)
@@ -9,4 +9,4 @@ server.modules += (
 #### compress module
 #compress.cache-dir = "/var/cache/lighttpd/mod_compress"
 #compress.filetype = ("text/plain", "text/html")
-#compress.allowed_encodings = ( "bzip2", "gzip", "deflate" )
+#compress.allowed-encodings = ( "bzip2", "gzip", "deflate" )
This page took 0.042715 seconds and 4 git commands to generate.