Skip to content

Commit

Permalink
Merge pull request #814 from stripe/remi-fix-ephemeral-key-version
Browse files Browse the repository at this point in the history
Properly override API version if it's set in the request
  • Loading branch information
brandur-stripe authored Mar 19, 2019
2 parents 49eb31a + 2b9020d commit c4645c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stripe.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ func (s *BackendImplementation) NewRequest(method, path, key, contentType string

for k, v := range params.Headers {
for _, line := range v {
req.Header.Add(k, line)
// Use Set to override the default value possibly set before
req.Header.Set(k, line)
}
}
}
Expand Down

0 comments on commit c4645c0

Please sign in to comment.