From 265f0fdcf659a377773e87d577ee8c13ef790ec5 Mon Sep 17 00:00:00 2001 From: Rafael Matias Date: Thu, 15 Aug 2019 11:07:53 +0200 Subject: [PATCH] api/http: remove unnecessary conversion (#1673) --- api/http/server_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/http/server_test.go b/api/http/server_test.go index cf75c3221f..5d6401546f 100644 --- a/api/http/server_test.go +++ b/api/http/server_test.go @@ -1470,7 +1470,7 @@ func (t *testResolveValidator) HeaderByNumber(context.Context, *big.Int) (header func uploadFile(t *testing.T, srv *TestSwarmServer, data []byte) []byte { t.Helper() - resp, err := http.Post(fmt.Sprintf("%s/bzz-raw:/", srv.URL), "text/plain", bytes.NewReader([]byte(data))) + resp, err := http.Post(fmt.Sprintf("%s/bzz-raw:/", srv.URL), "text/plain", bytes.NewReader(data)) if err != nil { t.Fatal(err) }