Skip to content

Conversation

@bagder
Copy link
Member

@bagder bagder commented Sep 8, 2025

By appending :all:[separator] to the header name. The [separator] string is output between each header value if there are more than one to output.

Test 764 verifies

Idea-by: kapsiR on github
Ref: #18449

@bagder bagder added cmdline tool feature-window A merge of this requires an open feature window labels Sep 8, 2025
@github-actions github-actions bot added the tests label Sep 8, 2025
@kapsiR
Copy link

kapsiR commented Sep 8, 2025

Great! Thanks for the quick implementation!

I don't know the curl internals enough, the only thing I'd mention here is, if there is a possibility of a recursion, should there any handling for that? (or is this not possible due to the redirect implementation?)

@bagder
Copy link
Member Author

bagder commented Sep 8, 2025

I don't know the curl internals enough, the only thing I'd mention here is, if there is a possibility of a recursion, should there any handling for that? (or is this not possible due to the redirect implementation?)

That's not a risk here. There are several different ways those are prevented (before this code runs): there's a maximum redirections to follow value (--max-redirs, 50 by default) and there is a maximum number of headers curl will record before it returns error.

@bagder bagder marked this pull request as ready for review September 8, 2025 06:48
@testclutch

This comment was marked as outdated.

@bagder bagder force-pushed the bagder/writeout-all-headers branch from f61a564 to dfcfad2 Compare September 8, 2025 14:33
bagder added a commit that referenced this pull request Sep 8, 2025
By appending `:all:[separator]` to the header name. The `[separator]` string
is output between each header value if there are more than one to output.

Test 764 and 765 verify

Idea-by: kapsiR on github
Ref: #18449
Closes #18491
@bagder bagder force-pushed the bagder/writeout-all-headers branch from dfcfad2 to 15c2c93 Compare September 8, 2025 21:27
By appending `:all:[separator]` to the header name. The `[separator]` string
is output between each header value if there are more than one to output.

Test 764 and 765 verify

Idea-by: kapsiR on github
Ref: #18449
Closes #18491
@bagder bagder force-pushed the bagder/writeout-all-headers branch from 15c2c93 to 6f2b4a3 Compare September 9, 2025 13:48
@bagder bagder closed this in 3dad0cf Sep 20, 2025
@bagder bagder deleted the bagder/writeout-all-headers branch September 20, 2025 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmdline tool feature-window A merge of this requires an open feature window tests

Development

Successfully merging this pull request may close these issues.

3 participants