Skip to content

Commit

Permalink
Merge pull request #1598 from est/patch-1
Browse files Browse the repository at this point in the history
fix large cookie warn comment
  • Loading branch information
jab committed Jul 4, 2019
2 parents 1a85242 + 701531e commit a41a3e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/werkzeug/http.py
Expand Up @@ -1195,9 +1195,9 @@ def dump_cookie(
if not PY2:
rv = rv.decode("latin1")

# Warn if the final value of the cookie is less than the limit. If the
# cookie is too large, then it may be silently ignored, which can be quite
# hard to debug.
# Warn if the final value of the cookie is larger than the limit. If the
# cookie is too large, then it may be silently ignored by the browser,
# which can be quite hard to debug.
cookie_size = len(rv)

if max_size and cookie_size > max_size:
Expand Down

0 comments on commit a41a3e0

Please sign in to comment.