]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
♻ Remove `media_type` from `ORJSONResponse` as it's inherited from the parent class...
authorMarcelo Trylesinski <marcelotryle@gmail.com>
Sat, 10 Jun 2023 17:04:29 +0000 (19:04 +0200)
committerGitHub <noreply@github.com>
Sat, 10 Jun 2023 17:04:29 +0000 (19:04 +0200)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
fastapi/responses.py

index 88dba96e8f5666b0ef947b69d2adb83847b96c61..c0a13b7555efc9d99c5c887fee1c94c88ba7e89c 100644 (file)
@@ -27,8 +27,6 @@ class UJSONResponse(JSONResponse):
 
 
 class ORJSONResponse(JSONResponse):
-    media_type = "application/json"
-
     def render(self, content: Any) -> bytes:
         assert orjson is not None, "orjson must be installed to use ORJSONResponse"
         return orjson.dumps(