Commit Graph

6 Commits

Author SHA1 Message Date
Guillaume Gardey
b6fa460254 Fix formatting 2020-12-23 10:04:52 +00:00
Guillaume Gardey
755bf44e12 Fix copy/paste issue in test 2020-12-23 09:48:50 +00:00
Guillaume Gardey
acde458c45 fix: Address issue with decorator
The value returned by an endpoint may not be an instance or subclass
of `Response`, in this case FastAPI builds the actual Response
at an upper level in the middleware stack.
This patch allows the decorator to inspect the endpoint to retrieve the
associated `Response` to allow headers to be injected.
2020-12-23 09:48:50 +00:00
Laurent Savaete
b82536a669 Fix black and mypy errors 2020-09-28 00:53:41 +01:00
Thomas LEVEIL
a66a728e50 TESTS : cover cases of missing request: Request parameter or misuse 2020-09-27 20:20:16 +02:00
Laurent Savaete
9880ff7625 First version 2020-02-21 13:51:35 +00:00