Skip to content

Commit

Permalink
air: fixed header export as true list of tuples
Browse files Browse the repository at this point in the history
  • Loading branch information
rodja committed Sep 22, 2023
1 parent 6d5ecda commit 3321b46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nicegui/air.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def on_http(data: Dict[str, Any]) -> Dict[str, Any]:
response.headers.update({'content-encoding': 'gzip', 'content-length': str(len(compressed))})
return {
'status_code': response.status_code,
'headers': list(response.headers.items()), # NOTE items() concatenates values for duplicate keys
'headers': [(k.decode(), v.decode()) for k, v in headers.raw],
'content': compressed,
}

Expand Down

0 comments on commit 3321b46

Please sign in to comment.