From 8b843127ba3c8c9d3c627aa7e6a62d78a06a03b8 Mon Sep 17 00:00:00 2001 From: ivanr Date: Thu, 14 Jun 2007 14:59:48 +0000 Subject: [PATCH] Revert incorrect change to GET/HEAD detection code. This will teach me to always compile before I commit. --- apache2/pdf_protect.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apache2/pdf_protect.c b/apache2/pdf_protect.c index 438934ca..e77f1933 100644 --- a/apache2/pdf_protect.c +++ b/apache2/pdf_protect.c @@ -403,9 +403,7 @@ int pdfp_check(modsec_rec *msr) { /* Ignore request methods other than GET and HEAD if * configured to do so. */ - if ((msr->r->method_number != M_GET)&&(msr->r->method_number != M_HEAD) - &&(cfg->pdfp_only_get != 0)) - { + if ((msr->r->method_number != M_GET)&&(cfg->pdfp_only_get != 0)) { if (msr->txcfg->debuglog_level >= 4) { msr_log(msr, 4, "PdfProtect: Not intercepting a GET/HEAD request " "(method=%s/%i).", log_escape_nq(msr->mp, msr->r->method), msr->r->method_number);