summaryrefslogtreecommitdiff
path: root/src/HttpHeaderProcessor.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-10-03 17:59:39 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-10-03 17:59:39 +0900
commitc81b1321122e8509b55c94c0cbca0d8d6d319f0c (patch)
treef24b49dd9cceb006172dbd09da4e5f5d3371241b /src/HttpHeaderProcessor.cc
parentc63fc414c389c893c80022669a7d75f3c6869c7e (diff)
parent85faafcaf233855042aead1cc522375fa7955d7e (diff)
Merge branch 'master' into random-webseeding
Diffstat (limited to 'src/HttpHeaderProcessor.cc')
-rw-r--r--src/HttpHeaderProcessor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HttpHeaderProcessor.cc b/src/HttpHeaderProcessor.cc
index ac8a6f2b..5a5fab35 100644
--- a/src/HttpHeaderProcessor.cc
+++ b/src/HttpHeaderProcessor.cc
@@ -440,7 +440,7 @@ fin:
// http://httpd.apache.org/docs/2.2/en/mod/core.html about size
// limit of HTTP headers. The page states that the number of request
// fields rarely exceeds 20.
- if (lastFieldName_.size() > 1024 || buf_.size() > 8192) {
+ if (lastFieldName_.size() > 1024 || buf_.size() > 8_k) {
throw DL_ABORT_EX("Too large HTTP header");
}