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
Make download_url() follow redirects (#3235) (#3236)
Summary:
* Make download_url() follow redirects
Fix bug related to the incorrect processing of redirects.
Follow the redirect chain until the destination is reached or
the number of redirects exceeds the max allowed value (by default 10).
* Parametrize value of max allowed redirect number
Make max number of hops a function argument and assign its default value to 10
* Propagate the max number of hops to download_url()
Add the maximum number of redirect hops parameter to download_url()
* check file existence before redirect
* remove print
* remove recursion
* add tests
* Reducing max_redirect_hops
Reviewed By: datumbox
Differential Revision: D25954556
fbshipit-source-id: 3b2c64592d5882b98e87acdb5efd95e9283d2862
Co-authored-by: Vasilis Vryniotis <[email protected]>
Co-authored-by: Philip Meier <[email protected]>
Co-authored-by: Vasilis Vryniotis <[email protected]>
0 commit comments