Skip to content

Commit

Permalink
Merge pull request #9 from bilginyuksel/master
Browse files Browse the repository at this point in the history
Updated header.values method to support go1.13
  • Loading branch information
cyucelen authored Oct 25, 2021
2 parents 7d69a65 + 252c20e commit eec98fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assert.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (r RequestRecorder) AssertNoRequest(t *testing.T) bool {
func isHeaderContains(expectedHeader, actualHeader http.Header) bool {
assertionResult := true
for key, value := range expectedHeader {
headerValue := actualHeader.Values(key)
headerValue := actualHeader[key]
assertionResult = assertionResult && assert.ObjectsAreEqualValues(headerValue, value)
}
return assertionResult
Expand Down

0 comments on commit eec98fc

Please sign in to comment.