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 incorrect response header content-type reading #48

Merged
merged 2 commits into from
Jul 28, 2023

Conversation

NeroBlackstone
Copy link
Contributor

@NeroBlackstone NeroBlackstone commented Jul 27, 2023

Related issue #46
This bug is caused by incorrect response header content-type reading.

The response header resp use "content-type" not "Content-Type" as the key to store MIME. So the header(resp, "Content-Type", "application/json") always return default value "application/json". That's why all the response content-type will be judged as json

image

I don't add any test, cause no file download API in test specs.

@codecov-commenter
Copy link

Codecov Report

Merging #48 (556b530) into main (00fc01f) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main      #48   +/-   ##
=======================================
  Coverage   79.81%   79.81%           
=======================================
  Files           7        7           
  Lines         545      545           
=======================================
  Hits          435      435           
  Misses        110      110           
Files Changed Coverage Δ
src/client.jl 80.99% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

src/client.jl Outdated Show resolved Hide resolved
Project.toml Outdated Show resolved Hide resolved
@tanmaykm tanmaykm merged commit 522fc2d into JuliaComputing:main Jul 28, 2023
2 checks passed
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.

3 participants