graphql-flutter
graphql-flutter copied to clipboard
HTTP redirect to HTTPS
Describe the bug When pointing this library to a HTTP endpoint and that HTTP endpoint is configured to redirect to HTTPS the requests fails. This is probably affected by 301 and 302 http status code.
To Reproduce Configure an endpoint with HTTP that is configured on the web server to redirect to HTTPS
Expected behavior Should redirect gracefully to HTTPS without any warning or error
Screenshots https://i.imgur.com/1QgnfsA.jpg
Smartphone (please complete the following information):
- Device: Xiaomi Pocophone F1
- OS: Android 10 - MIUI Global
- Version 11.0.4
hmm – it seems the http
library doesn't do automatic redirects by design. I guess we could add a flag or link for following redirects every request though