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);