mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 13:24:07 +00:00
add server glue for reverse API call
This commit is contained in:
@@ -39,7 +39,8 @@ class ParamWrapper(api_impl.ASGIAdaptor):
|
||||
|
||||
|
||||
def error(self, msg: str, status: int = 400) -> HTTPException:
|
||||
return HTTPException(status, detail=msg)
|
||||
return HTTPException(status, detail=msg,
|
||||
headers={'content-type': self.content_type})
|
||||
|
||||
|
||||
def create_response(self, status: int, output: str) -> Response:
|
||||
|
||||
Reference in New Issue
Block a user