📝 Fix renamed parameter `content_type` typo (#2135)

This commit is contained in:
Teofilo Zosa 2020-11-05 14:26:28 -08:00 committed by GitHub
parent 1a000d7e5f
commit 730ded2870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ Import the `Response` class (sub-class) you want to use and declare it in the *p
To return a response with HTML directly from **FastAPI**, use `HTMLResponse`.
* Import `HTMLResponse`.
* Pass `HTMLResponse` as the parameter `content_type` of your *path operation*.
* Pass `HTMLResponse` as the parameter `response_class` of your *path operation decorator*.
```Python hl_lines="2 7"
{!../../../docs_src/custom_response/tutorial002.py!}