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
Copy file name to clipboardExpand all lines: lib/async/http/relative_location.rb
+36-11Lines changed: 36 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,9 @@ module HTTP
16
16
classTooManyRedirects < StandardError
17
17
end
18
18
19
-
# A client wrapper which transparently handles both relative and absolute redirects to a given maximum number of hops.
19
+
# A client wrapper which transparently handles redirects to a given maximum number of hops.
20
+
#
21
+
# The default implementation will only follow relative locations (i.e. those without a scheme) and will switch to GET if the original request was not a GET.
20
22
#
21
23
# The best reference for these semantics is defined by the [Fetch specification](https://fetch.spec.whatwg.org/#http-redirect-fetch).
0 commit comments