Starlett will automatically generate redirects to add or remove trailing slashes as appropriate. To do this it needs to know the protocol, however. This is usually passed by the proxy in the X-Forwarded-Proto header.