Skip to content

Commit 8a56fd8

Browse files
committed
tests/sanic: use a syntax for setting cookies that work on older versions
1 parent 0bc032c commit 8a56fd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/contrib/sanic/fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ async def custom_headers(request):
158158
@app.get("/add-cookies")
159159
async def add_cookies(request):
160160
response = json({"data": "message"}, headers={"sessionid": 1234555})
161-
response.add_cookie("some", "cookie")
161+
response.cookies["some"] = "cookie"
162162
return response
163163

164164
try:

0 commit comments

Comments
 (0)