mirror of https://github.com/tiangolo/fastapi.git
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
This commit is contained in:
parent
030f01473a
commit
d4da10cbe7
|
|
@ -397,9 +397,7 @@ def get_request_handler(
|
||||||
raw_response.background = solved_result.background_tasks
|
raw_response.background = solved_result.background_tasks
|
||||||
return raw_response
|
return raw_response
|
||||||
|
|
||||||
response_args: Dict[str, Any] = {
|
response_args: Dict[str, Any] = {"background": solved_result.background_tasks}
|
||||||
"background": solved_result.background_tasks
|
|
||||||
}
|
|
||||||
# If status_code was set, use it, otherwise use the default from the
|
# If status_code was set, use it, otherwise use the default from the
|
||||||
# response class, in the case of redirect it's 307
|
# response class, in the case of redirect it's 307
|
||||||
if solved_result.response.status_code:
|
if solved_result.response.status_code:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue