Skip to content

Commit

Permalink
fix: headers are now case sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
BenediktBertsch committed Oct 3, 2022
1 parent 121d96b commit df3fcd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxmox/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func createHeaderList(header_string string, sess *Session) (*Session, error) {
return nil, err
}
for i := 0; i < len(header_string_split); i += 2 {
sess.Headers.Add(header_string_split[i], header_string_split[i+1])
sess.Headers[header_string_split[i]] = []string{header_string_split[i+1]}
}
return sess, nil
}

0 comments on commit df3fcd2

Please sign in to comment.