Skip to content

Commit

Permalink
removing error wrapping to unbreak support for 1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Rutherford committed Jun 15, 2020
1 parent 0ed831d commit 6cfbcb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assertions.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func (b *requiredBody) Assert(r *http.Request) error {

body, err := ioutil.ReadAll(r.Body)
if err != nil {
return fmt.Errorf("error reading the request body: %w", err)
return fmt.Errorf("error reading the request body: %s", err.Error())
}

if !bytes.EqualFold(b.ExpectedBody, body) {
Expand Down

0 comments on commit 6cfbcb5

Please sign in to comment.