📝 Fix renamed parameter content_type typo (#2135)

This commit is contained in:
Teofilo Zosa authored and GitHub committed 2020-11-05 23:26:28 +01:00
1 parent 1a000d7e5f
commit 730ded2870
1 file changed
+1 -1
+1 -1
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!}