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

support multiple headers #25

Merged
merged 1 commit into from
Oct 1, 2020

Conversation

brenol
Copy link
Contributor

@brenol brenol commented Oct 1, 2020

this will close the issue I opened #24

@codecov-commenter
Copy link

codecov-commenter commented Oct 1, 2020

Codecov Report

Merging #25 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #25   +/-   ##
=======================================
  Coverage   77.59%   77.59%           
=======================================
  Files           7        7           
  Lines         281      281           
=======================================
  Hits          218      218           
  Misses         45       45           
  Partials       18       18           

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 6d51dac...895f7e1. Read the comment docs.

@nakabonne
Copy link
Owner

@brenol Thanks for your contribution! This is a feature I wanted but hadn't gotten around to.

I could confirm to specify as many as needed by repeating the flag.

go run main.go -H "foo:bar" -H "Bar:Foo" -H "foo:bar2" --debug http://host.xz
"header" http.Header{
  "foo": []string{
    "bar",
    "bar2",
  },
  "Bar": []string{
    "Foo",
  },
}

@nakabonne nakabonne merged commit c08cf45 into nakabonne:master Oct 1, 2020
@nakabonne nakabonne mentioned this pull request Oct 1, 2020
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.

None yet

3 participants