Skip to content

Commit

Permalink
fix large cookie warn comment
Browse files Browse the repository at this point in the history
I thing the word is wrong here
  • Loading branch information
est committed Jul 3, 2019
1 parent 1a85242 commit 701531e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/werkzeug/http.py
Original file line number Diff line number Diff line change
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 701531e

Please sign in to comment.