]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
📝 Fix renamed parameter `content_type` typo (#2135)
authorTeofilo Zosa <TeoZosa@users.noreply.github.com>
Thu, 5 Nov 2020 22:26:28 +0000 (14:26 -0800)
committerGitHub <noreply@github.com>
Thu, 5 Nov 2020 22:26:28 +0000 (23:26 +0100)
docs/en/docs/advanced/custom-response.md

index e9cac6df08487b9f7870de095a07158c0142ca3c..fa253305e2e60c474a647190539954c55b7a09bc 100644 (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!}