Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9977c51

Browse files
added articles by exchange paged
1 parent 4ae66e3 commit 9977c51

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

‎src/main/main.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -317,12 +317,6 @@ async def compare_tokens():
317317
# raise NotAuthorized(message="Route Not Allowed, if you think this maybe an error please contact admin")
318318
response = JSONResponse(content="Request Does not Match Any Known Route", status_code=404)
319319

320-
# This code will be executed for each outgoing response
321-
# before it is sent back to the client.
322-
# You can modify the response here, or perform any other
323-
# post-processing that you need.
324-
# _out_signature = await cf_firewall.create_signature(response=response, secret=_secret)
325-
# response.headers.update({'X-Signature': _out_signature})
326320
end_time = time.monotonic()
327321
app_logger.info(f"Elapsed Time Validate Request : {end_time - start_time}")
328322
app_logger.info("Cleared Request Validation")
@@ -464,10 +458,8 @@ async def v1_gateway(request: Request, path: str):
464458
try:
465459
# 5 minutes timeout on resource fetching from backend - some resources may take very long
466460
response = await requester(api_url=api_url, timeout=9600)
467-
468461
if response and response.get("status", False) and response.get('payload'):
469462
# NOTE, Cache is being set to a ttl of one hour here
470-
471463
await redis_cache.set(key=api_url, value=response, ttl=60 * 60)
472464
return JSONResponse(content=response, status_code=200, headers={"Content-Type": "application/json"})
473465
except httpx.HTTPError as http_err:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /