X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/3ac70f7cc2f4d39c0d6baace7d40b3158cc97bad..1facfd019b3e0c86b3cfb1a25ae0837cce4bdcae:/nominatim/server/sanic/server.py diff --git a/nominatim/server/sanic/server.py b/nominatim/server/sanic/server.py index 0bc7a1e7..a2379501 100644 --- a/nominatim/server/sanic/server.py +++ b/nominatim/server/sanic/server.py @@ -38,9 +38,8 @@ class ParamWrapper(api_impl.ASGIAdaptor): return SanicException(msg, status_code=status) - def create_response(self, status: int, output: str, - content_type: str) -> HTTPResponse: - return TextResponse(output, status=status, content_type=content_type) + def create_response(self, status: int, output: str) -> HTTPResponse: + return TextResponse(output, status=status, content_type=self.content_type) def config(self) -> Configuration: