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
|
|
| 603 | 603 | stat_cache_entry *sce = NULL; |
| 604 | 604 | buffer *content_type; |
| 605 | 605 | |
| | 606 | if (con->mode != DIRECT) return HANDLER_GO_ON; |
| | 607 | |
| 606 | 608 | /* only GET and POST can get compressed */ |
| 607 | 609 | if (con->request.http_method != HTTP_METHOD_GET && |
| 608 | 610 | con->request.http_method != HTTP_METHOD_POST) { |