From 263fa21016a4f7b8ec3c3a60e1bc43caed308495 Mon Sep 17 00:00:00 2001 From: Gleb Abroskin Date: Thu, 3 Jun 2021 16:30:53 +0300 Subject: [PATCH] #171 UJSONResponse Fix #171 UJSONResponse Fix Co-authored-by: Gleb Abroskin --- fastapi_contrib/common/responses.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastapi_contrib/common/responses.py b/fastapi_contrib/common/responses.py index 4f89152..ffe6b40 100644 --- a/fastapi_contrib/common/responses.py +++ b/fastapi_contrib/common/responses.py @@ -1,10 +1,10 @@ import typing import ujson -from starlette.responses import UJSONResponse as BaseUJSONResponse +from starlette.responses import JSONResponse -class UJSONResponse(BaseUJSONResponse): +class UJSONResponse(JSONResponse): """ Custom Response, based on default UJSONResponse, but with differences: * Allows to have forward slashes inside strings of JSON