Skip to content

Commit

Permalink
Fix issues with status code defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
TimPansino committed Jan 26, 2022
1 parent dc32523 commit 8623cb4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions strawberry/asgi/handlers/http_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ async def handle(self, scope: Scope, receive: Receive, send: Send):
root_value = await self.get_root_value(request)

sub_response = Response()
if sub_response.status_code == 200:
# Set default status code to None
sub_response.status_code = None # typing: ignore

context = await self.get_context(request=request, response=sub_response)

Expand Down

0 comments on commit 8623cb4

Please sign in to comment.