-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise
TypeError
when setting StreamResponse.last_modified
to an u…
…nsupported type (#10146) <!-- Thank you for your contribution! --> ## What do these changes do? closes #10143 ## Are there changes in behavior for the user? Currently this would silently fail and discard the new value. <img width="685" alt="Screenshot 2024-12-08 at 12 32 49 PM" src="https://github.com/user-attachments/assets/b0cf00c3-cd2e-4be6-af94-d993491bd296"> (cherry picked from commit a818e51)
- Loading branch information
1 parent
5d9d830
commit f8cf09a
Showing
3 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Setting :attr:`aiohttp.web.StreamResponse.last_modified` to an unsupported type will now raise :exc:`TypeError` instead of silently failing -- by :user:`bdraco`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters