Skip to content

Commit 7121e8c

Browse files
Since Python 3.13 control characters are no longer allowed in header values
This was deprecated in RFC 9112, and thus is disallowed in Python wsgi ref.
1 parent f9db3e5 commit 7121e8c

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

tests/test_client_functional.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ def cookie_app(req):
6868
resp = Response("test")
6969
resp.headers.add("Set-Cookie", "a=b")
7070
resp.headers.add("Set-Cookie", "c=d")
71-
resp.headerlist.append(("X-Crazy", "value\r\n continuation"))
7271
return resp
7372

7473

@@ -78,9 +77,6 @@ def test_client_cookies(serve, client_app=None):
7877
req = Request.blank(server.url + "/?test")
7978
resp = req.send(client_app)
8079
assert resp.headers.getall("Set-Cookie") == ["a=b", "c=d"]
81-
assert resp.headers["X-Crazy"] == "value, continuation", repr(
82-
resp.headers["X-Crazy"]
83-
)
8480

8581

8682
@wsgify

0 commit comments

Comments
 (0)