Revert "Trying another option to handle redirects using x-forwarded-proto."

This reverts commit dc50acd5de67f790e2f065575d06efe2930a48b1.