From 730ded2870029430f57f394186616f500f726ba2 Mon Sep 17 00:00:00 2001 From: Teofilo Zosa Date: Thu, 5 Nov 2020 14:26:28 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Fix=20renamed=20parameter=20`con?= =?UTF-8?q?tent=5Ftype`=20typo=20(#2135)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/en/docs/advanced/custom-response.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/docs/advanced/custom-response.md b/docs/en/docs/advanced/custom-response.md index e9cac6df0..fa253305e 100644 --- a/docs/en/docs/advanced/custom-response.md +++ b/docs/en/docs/advanced/custom-response.md @@ -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!}