Skip to content

Commit

Permalink
fix: set_cookie needs a str
Browse files Browse the repository at this point in the history
  • Loading branch information
utnapischtim committed Dec 3, 2024
1 parent 5b2017b commit 09922da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_csrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def test_csrf_not_signed_correctly(csrf_app, csrf):
CSRF_COOKIE_NAME = csrf_app.config["CSRF_COOKIE_NAME"]
CSRF_HEADER_NAME = csrf_app.config["CSRF_HEADER"]
client.set_cookie(
CSRF_COOKIE_NAME, malicious_cookie, domain="localhost"
CSRF_COOKIE_NAME, malicious_cookie.decode("utf-8"), domain="localhost"
)

res = client.post(
Expand Down

0 comments on commit 09922da

Please sign in to comment.