Skip to content

Commit

Permalink
fix: fixed fastapi addons object
Browse files Browse the repository at this point in the history
  • Loading branch information
slaveeks committed Nov 24, 2024
1 parent 63755a4 commit 8ae1250
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/hawkcatcher/modules/fastapi/fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,13 @@ def _set_addons(self) -> Union[FastapiAddons, None]:
return None

return {
'url': str(request.url),
'method': request.method,
'headers': dict(request.headers),
'cookies': dict(request.cookies),
'params': dict(request.query_params)
'fastapi': {
'url': str(request.url),
'method': request.method,
'headers': dict(request.headers),
'cookies': dict(request.cookies),
'params': dict(request.query_params)
}
}

@staticmethod
Expand Down

0 comments on commit 8ae1250

Please sign in to comment.