diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-06-21 18:04:30 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-06-21 19:29:54 +0900 |
| commit | 318c804504e32b7a0bbdbb35336d2e918000d80a (patch) | |
| tree | fad396aee04c44a29ee79b33e1675db2275146c0 /src/HttpHeaderProcessor.cc | |
| parent | 8ba9b0474747185708a25943fb6d2f97b3d9b17f (diff) | |
Use user-defined literal for k, m, and g (powers of 1024)
Diffstat (limited to 'src/HttpHeaderProcessor.cc')
| -rw-r--r-- | src/HttpHeaderProcessor.cc | 2 |
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"); } |
