Skip to content

Commit

Permalink
✨ Include HTTP 205 in status codes with no body (#10969)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Jan 15, 2024
1 parent e90fc7b commit dcc952d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastapi/utils.py
Expand Up @@ -53,7 +53,7 @@ def is_body_allowed_for_status_code(status_code: Union[int, str, None]) -> bool:
}:
return True
current_status_code = int(status_code)
return not (current_status_code < 200 or current_status_code in {204, 304})
return not (current_status_code < 200 or current_status_code in {204, 205, 304})


def get_path_param_names(path: str) -> Set[str]:
Expand Down

0 comments on commit dcc952d

Please sign in to comment.