Skip to content

Commit

Permalink
fix: assignment to entry in nil map error (#639)
Browse files Browse the repository at this point in the history
  • Loading branch information
gingerich committed Nov 24, 2022
1 parent a25499c commit 37a7ded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmdx/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func NewClient(cmd *cobra.Command) (*http.Client, *url.URL, error) {
if err != nil {
return nil, nil, errors.WithStack(err)
}
var header http.Header
header := http.Header{}
for _, h := range rawHeaders {
parts := strings.Split(h, ":")
if len(parts) != 2 {
Expand Down

0 comments on commit 37a7ded

Please sign in to comment.