Ticket #1565: mod_compress-should-check-con-mode-DIRECT_lighty1.4.patch

File mod_compress-should-check-con-mode-DIRECT_lighty1.4.patch, 0.8 kB (added by stbuehler, 7 months ago)
  • src/mod_compress.c

    From 4e20960759eb81825ea260340a4322b29e82477a Mon Sep 17 00:00:00 2001
    From: =?utf-8?q?Stefan=20B=C3=BChler?= <stbuehler@web.de>
    Date: Fri, 15 Feb 2008 16:36:25 +0100
    Subject: [PATCH] mod_compress should check con->mode == DIRECT
    
    ---
     src/mod_compress.c |    2 ++
     1 files changed, 2 insertions(+), 0 deletions(-)
    
    diff --git a/src/mod_compress.c b/src/mod_compress.c
    index 2b900ee..b338332 100644
    a b  
    603603        stat_cache_entry *sce = NULL; 
    604604        buffer *content_type; 
    605605 
     606        if (con->mode != DIRECT) return HANDLER_GO_ON; 
     607 
    606608        /* only GET and POST can get compressed */ 
    607609        if (con->request.http_method != HTTP_METHOD_GET && 
    608610            con->request.http_method != HTTP_METHOD_POST) {