Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix filepath name from remote URL in HTTP.download, fixes #696. #706

Merged
merged 1 commit into from
May 1, 2021

Conversation

fredrikekre
Copy link
Member

No description provided.

@fredrikekre
Copy link
Member Author

I noted that curl uses the filename of the original request URL rather than the redirect URL. That seems more intuitive to me but perhaps too big of a change?

@codecov-commenter
Copy link

codecov-commenter commented Apr 30, 2021

Codecov Report

Merging #706 (15ff717) into master (255a759) will decrease coverage by 0.15%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #706      +/-   ##
==========================================
- Coverage   75.24%   75.08%   -0.16%     
==========================================
  Files          36       36              
  Lines        2347     2352       +5     
==========================================
  Hits         1766     1766              
- Misses        581      586       +5     
Impacted Files Coverage Δ
src/download.jl 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 255a759...15ff717. Read the comment docs.

@oxinabox
Copy link
Member

I noted that curl uses the filename of the original request URL rather than the redirect URL.

I think that would be fine.
Curl has good defaults, I always want HTTP.jl to act more like curl

@fredrikekre
Copy link
Member Author

I agree. It is nice that HTTP.download("https://a.b/c") gives a file c since that is what I control, rather than what it happened to redirect to.

@fredrikekre
Copy link
Member Author

I can update this PR with that before we merge.

@fredrikekre fredrikekre merged commit b109701 into master May 1, 2021
@fredrikekre fredrikekre deleted the fe/download-filename branch May 1, 2021 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants