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

Don't write headers if value is empty #831

Merged
merged 2 commits into from
May 25, 2022
Merged

Don't write headers if value is empty #831

merged 2 commits into from
May 25, 2022

Conversation

quinnj
Copy link
Member

@quinnj quinnj commented May 25, 2022

Fixes #828. This follows a convention curl uses where empty headers
aren't included when the request is sent. Pretty minimal changes here
which is nice that this is so easy to support.

Fixes #828. This follows a convention curl uses where empty headers
aren't included when the request is sent. Pretty minimal changes here
which is nice that this is so easy to support.
@quinnj quinnj marked this pull request as ready for review May 25, 2022 22:02
@codecov-commenter
Copy link

codecov-commenter commented May 25, 2022

Codecov Report

Merging #831 (9ebb45d) into master (832185f) will decrease coverage by 1.06%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #831      +/-   ##
==========================================
- Coverage   78.56%   77.50%   -1.07%     
==========================================
  Files          36       36              
  Lines        2538     2538              
==========================================
- Hits         1994     1967      -27     
- Misses        544      571      +27     
Impacted Files Coverage Δ
src/HTTP.jl 67.79% <ø> (-15.26%) ⬇️
src/Messages.jl 84.13% <100.00%> (ø)
src/WebSockets.jl 86.45% <0.00%> (-4.52%) ⬇️
src/Servers.jl 84.14% <0.00%> (-3.66%) ⬇️
src/access_log.jl 90.00% <0.00%> (-3.34%) ⬇️
src/IOExtras.jl 73.80% <0.00%> (-2.39%) ⬇️
src/StreamRequest.jl 92.98% <0.00%> (-1.76%) ⬇️
src/ConnectionPool.jl 82.82% <0.00%> (-0.51%) ⬇️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@quinnj quinnj merged commit 72aceef into master May 25, 2022
@quinnj quinnj deleted the jq/emptyheaders branch May 25, 2022 22:37
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.

Question on defaultheader!(headers, "Accept" => "*/*")
2 participants