Use http.NoBody as per linter (#231)

Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/231
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
This commit is contained in:
6543 2023-07-17 19:44:58 +00:00 committed by Moritz Marquardt
parent 5a6f415428
commit 5fe4613813

View file

@ -1,6 +1,7 @@
package handler
import (
"net/http"
"net/http/httptest"
"testing"
"time"
@ -24,7 +25,7 @@ func TestHandlerPerformance(t *testing.T) {
testCase := func(uri string, status int) {
t.Run(uri, func(t *testing.T) {
req := httptest.NewRequest("GET", uri, nil)
req := httptest.NewRequest("GET", uri, http.NoBody)
w := httptest.NewRecorder()
log.Printf("Start: %v\n", time.Now())