Revert incorrect change to GET/HEAD detection code. This will teach me to always compile before I commit.

This commit is contained in:
ivanr 2007-06-14 14:59:48 +00:00
parent c7f5dc3355
commit 8b843127ba

View File

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