With python’s aiohttp serving both HTTP (port 80) and HTTPS (port 443), how can we know which port requests come from?
Summary The problem at hand involves distinguishing between HTTP and HTTPS requests in an aiohttp server that serves both protocols on different ports (80 for HTTP and 443 for HTTPS). This is crucial for implementing request handlers that behave differently based on the protocol used. Root Cause The root cause of this issue lies in … Read more