graphql-flutter icon indicating copy to clipboard operation
graphql-flutter copied to clipboard

HTTP redirect to HTTPS

Open marcotuna opened this issue 4 years ago • 1 comments

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

marcotuna avatar Mar 02 '20 11:03 marcotuna

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

micimize avatar May 09 '20 23:05 micimize