79232833

Date: 2024-11-28 06:57:20
Score: 0.5
Natty:
Report link

You can use Hypercorn's built-in ProxyFixMiddleware like this:

from hypercorn.middleware import ProxyFixMiddleware

app = Quart(__name__)
fixed_app = ProxyFixMiddleware(app, mode="legacy", trusted_hops=1)

See the docs here: https://hypercorn.readthedocs.io/en/latest/how_to_guides/proxy_fix.html

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: jakubsvehla