From 6cfbcb57d3e1ada027ab1846cb18f383bf53835e Mon Sep 17 00:00:00 2001 From: Eric Rutherford Date: Mon, 15 Jun 2020 11:16:47 -0500 Subject: [PATCH] removing error wrapping to unbreak support for 1.12 --- assertions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assertions.go b/assertions.go index f20a8f0..2a9bf90 100644 --- a/assertions.go +++ b/assertions.go @@ -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) {