Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Commit

Permalink
api/http: remove unnecessary conversion (#1673)
Browse files Browse the repository at this point in the history
  • Loading branch information
skylenet authored Aug 15, 2019
1 parent ec471e8 commit 265f0fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/http/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 265f0fd

Please sign in to comment.