Skip to content

Commit

Permalink
Add required trailers key for asgiref==3.6.0
Browse files Browse the repository at this point in the history
`asgiref==3.6.0` introduced a new required `trailers` key to the
`asgiref.types.HTTPResponseStartEvent` type. As the django/asgiref#339
code review pointed out, this is a breaking change for type checking,
but it was added in a minor release, and not mentioned in the changelog.

django/asgiref#339
django/asgiref#362
  • Loading branch information
br3ndonland committed Dec 29, 2022
1 parent d534de8 commit d729fdf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inboard/app/main_base.py
Expand Up @@ -41,6 +41,7 @@ async def app(
"type": "http.response.start",
"status": 200,
"headers": [(b"content-type", b"text/plain")],
"trailers": False,
}
body_event: HTTPResponseBodyEvent = {
"type": "http.response.body",
Expand Down

0 comments on commit d729fdf

Please sign in to comment.