summaryrefslogtreecommitdiff
path: root/src/httpscan.cc
diff options
context:
space:
mode:
authorLu <[email protected]>2018-07-20 11:09:54 +0800
committerLu <[email protected]>2018-07-20 11:09:54 +0800
commit5b9b1e38e9f71aedbfbec04bf5c42327d4b37194 (patch)
tree2f1ea8e55c9ee3fb74f80a8efd6e2a0edd65a289 /src/httpscan.cc
parent68eced64cc3fb3cb2d059b5aa39320d142319242 (diff)
#5 修正content_type.find()的判断条件。
Diffstat (limited to 'src/httpscan.cc')
-rw-r--r--src/httpscan.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/httpscan.cc b/src/httpscan.cc
index 17a2f96..8f3a20c 100644
--- a/src/httpscan.cc
+++ b/src/httpscan.cc
@@ -357,7 +357,7 @@ HttpScanSession::scan_result_t HttpScanSession::scan_bypass_content_type(const H
content_type = value; return false;
});
- if (content_type.find("text") != 0)
+ if (content_type.find("text") == 0)
{
return scan_result_t::kScanResultHit;
}