Skip to content

Commit

Permalink
tests/sanic: use a syntax for setting cookies that work on older vers…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
xrmx committed Jan 13, 2025
1 parent 0bc032c commit 8a56fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/contrib/sanic/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ async def custom_headers(request):
@app.get("/add-cookies")
async def add_cookies(request):
response = json({"data": "message"}, headers={"sessionid": 1234555})
response.add_cookie("some", "cookie")
response.cookies["some"] = "cookie"
return response

try:
Expand Down

0 comments on commit 8a56fd8

Please sign in to comment.