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
The filename magic parameter sometimes isn't removed from the underlying request, which make some requests fail, e.g. when using signed URLs to GCS bucket.
Details
Based on the code, I believe all the "magic" parameters should be removed before making a request.
This is not the case in case of an URL to tar.gz directory, like this:
Description
The
filename
magic parameter sometimes isn't removed from the underlying request, which make some requests fail, e.g. when using signed URLs to GCS bucket.Details
Based on the code, I believe all the "magic" parameters should be removed before making a request.
This is not the case in case of an URL to
tar.gz
directory, like this:and configuration:
I tracked the code execution, and it falls in the if which changes the mode:
go-getter/client.go
Line 217 in a2ebce9
Which is why the
filename
param is not removed, as the nextif
is skipped, which actually removes thefilename
param.go-getter/client.go
Lines 230 to 249 in a2ebce9
Fix incoming
I fixed it locally and will prepare a pull request soon. Hope you'll like it!
The text was updated successfully, but these errors were encountered: