You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So it's doing an initial POST, but then correctly getting a 301 redirect to the https URL (which is what we want).
Searching request github, I found this which seems to indicate this is what browser do (a 301 to a POST results in a GET to the new URL): psf/requests#5284, and HTTP clients follows.
SO thing we can do:
Idisable 301 handling in our client library (throw an error instead)Or checking if we can disable redirects.
Anothe thing to consider additionally is to check the regex of the base URL when not on local.
The text was updated successfully, but these errors were encountered:
There is a surprising but expected behavior when eg setting a base URL without HTTPS.
Output of running this:
So it's doing an initial POST, but then correctly getting a 301 redirect to the https URL (which is what we want).
Searching request github, I found this which seems to indicate this is what browser do (a 301 to a POST results in a GET to the new URL): psf/requests#5284, and HTTP clients follows.
SO thing we can do:
The text was updated successfully, but these errors were encountered: