JuliaServices / CloudStore.jl

A simple, consistent, and performant API for interacting with common cloud storage abstractions
Other
16 stars 8 forks source link

Account for http redirect responses when downloading #27

Closed quinnj closed 1 year ago

quinnj commented 1 year ago

Fixes https://github.com/JuliaServices/CloudStore.jl/issues/26. The issue is that HTTP.jl doesn't consider redirect responses as errors by default (they're usually handled automatically via default redirect logic, except for 301 statuses, which means the object has moved permanently and no redirect location is known).

This PR checks for this case and throw an appropriate ArgumentError.