File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -110,11 +110,23 @@ func TestServer_CORSWithExpectedContentType(t *testing.T) {
110110 wantContentType : "application/json" ,
111111 statusCode : http .StatusBadRequest ,
112112 },
113+ /*
114+ // This test works in go1.25 becuase there is no handler for
115+ // `/multihash` (no trailing slash). This test fails in go1.26 because
116+ // the request for `/multihash` is redirected to the handler for
117+ // `/multihash/` which checks the method.
118+ {
119+ reqMethod: http.MethodPost,
120+ reqUrl: "/multihash",
121+ wantContentType: "application/json",
122+ statusCode: http.StatusBadRequest,
123+ },
124+ */
113125 {
114126 reqMethod : http .MethodPost ,
115- reqUrl : "/multihash" ,
127+ reqUrl : "/multihash/ " ,
116128 wantContentType : "application/json" ,
117- statusCode : http .StatusBadRequest ,
129+ statusCode : http .StatusMethodNotAllowed ,
118130 },
119131 {
120132 reqMethod : http .MethodGet ,
You can’t perform that action at this time.
0 commit comments