Mercurial > libervia-backend
diff libervia/backend/plugins/plugin_comp_ap_gateway/http_server.py @ 4093:13b1079c27ec
component AP gateway: fix method retrieval in `ap_request`:
following recent refactoring to use snake_case, the former method retrieve was broken,
this patch fixes it.
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 12 Jun 2023 14:45:13 +0200 |
parents | 4b842c1fb686 |
children | 58bbc100f13b |
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_comp_ap_gateway/http_server.py Fri Jun 09 12:25:51 2023 +0200 +++ b/libervia/backend/plugins/plugin_comp_ap_gateway/http_server.py Mon Jun 12 14:45:13 2023 +0200 @@ -1029,7 +1029,7 @@ request.method.decode().upper(), [] ): raise exceptions.DataError(f"Invalid request type: {request_type!r}") - method = getattr(self, f"AP{request_type.title()}Request") + method = getattr(self, f"ap_{request_type}_request") ret_data = await method( request, data, account_jid, node, ap_account, ap_url, signing_actor )