You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2021/10/29 21:59:20 UTC

[incubator-ponymail-foal] branch master updated: fix response type

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git


The following commit(s) were added to refs/heads/master by this push:
     new d725845  fix response type
d725845 is described below

commit d725845c24f59ba51a24ee2b25df7615c3d6da0e
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Fri Oct 29 23:59:17 2021 +0200

    fix response type
---
 server/endpoints/gravatar.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/endpoints/gravatar.py b/server/endpoints/gravatar.py
index 207451d..766aa80 100644
--- a/server/endpoints/gravatar.py
+++ b/server/endpoints/gravatar.py
@@ -52,7 +52,7 @@ async def gravatar_exists_in_db(session, gid):
     return False
 
 
-async def process(server: plugins.server.BaseServer, session: dict, indata: dict) -> dict:
+async def process(server: plugins.server.BaseServer, session: dict, indata: dict) -> aiohttp.web.Response:
     gid = indata.get("md5", "null")
     # Ensure md5 hash is valid
     if len(gid) != 32 or not all(b in "abcdef0123456789" for b in gid):