]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/server/starlette/server.py
api: generalize error handling
[nominatim.git] / nominatim / server / starlette / server.py
index 26494cdb927ef471801c6cea47899b4f5f9f4e40..c1c5a5fa8d8eabedb17b89e1d73726b0d4b288a0 100644 (file)
@@ -42,8 +42,8 @@ class ParamWrapper(api_impl.ASGIAdaptor):
         return HTTPException(status, detail=msg)
 
 
-    def create_response(self, status: int, output: str, content_type: str) -> Response:
-        return Response(output, status_code=status, media_type=content_type)
+    def create_response(self, status: int, output: str) -> Response:
+        return Response(output, status_code=status, media_type=self.content_type)
 
 
     def config(self) -> Configuration: