Improve the GC
This commit is contained in:
parent
c00c811837
commit
06462ec8ff
2 changed files with 33 additions and 12 deletions
6
app.py
6
app.py
|
@ -629,10 +629,12 @@ def inbox():
|
|||
logger.info(f"request_id={g.request_id} req_headers={request.headers!r}")
|
||||
logger.info(f"request_id={g.request_id} raw_data={data}")
|
||||
try:
|
||||
if not verify_request(
|
||||
req_verified, actor_id = verify_request(
|
||||
request.method, request.path, request.headers, request.data
|
||||
):
|
||||
)
|
||||
if not req_verified:
|
||||
raise Exception("failed to verify request")
|
||||
logger.info(f"request_id={g.request_id} signed by {actor_id}")
|
||||
except Exception:
|
||||
logger.exception(
|
||||
f"failed to verify request {g.request_id}, trying to verify the payload by fetching the remote"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue