Skip to content

Commit 7be2d1e

Browse files
committed
add failing test
1 parent b0051c7 commit 7be2d1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,8 @@ func TestServe(t *testing.T) {
900900
"http allow CORS false",
901901
"testdata/http.yml",
902902
func(t *testing.T) {
903-
req, err := http.NewRequest(http.MethodOptions, "http://127.0.0.1:9090?query=cors", nil)
903+
q := "cors"
904+
req, err := http.NewRequest("GET", "http://127.0.0.1:9090?query="+url.QueryEscape(q), nil)
904905
checkErr(t, err)
905906
resp, err := http.DefaultClient.Do(req)
906907
checkErr(t, err)

0 commit comments

Comments
 (0)