Skip to content

Commit

Permalink
[3.7] Change typing of the secure argument on StreamResponse.set_cook…
Browse files Browse the repository at this point in the history
…ie (#4238) (#4273)

(cherry picked from commit e4573f8)

Co-authored-by: Pavel Filatov <triksrimer@gmail.com>
  • Loading branch information
asvetlov and paulefoe authored Oct 26, 2019
1 parent 5f15721 commit 15dc6aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES/4204.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Change typing of the secure argument on StreamResponse.set_cookie from Optional[str] to a Optional[bool]
4 changes: 2 additions & 2 deletions aiohttp/web_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ def set_cookie(self, name: str, value: str, *,
domain: Optional[str]=None,
max_age: Optional[Union[int, str]]=None,
path: str='/',
secure: Optional[str]=None,
httponly: Optional[str]=None,
secure: Optional[bool]=None,
httponly: Optional[bool]=None,
version: Optional[str]=None) -> None:
"""Set or update response cookie.
Expand Down

0 comments on commit 15dc6aa

Please sign in to comment.