@@ -250,8 +250,10 @@ func TestGatewayGet(t *testing.T) {
250
250
text string
251
251
}{
252
252
{"127.0.0.1:8080" , "/" , http .StatusNotFound , "404 page not found\n " },
253
+ {"127.0.0.1:8080" , "/ipfs" , http .StatusBadRequest , "invalid path \" /ipfs/\" : not enough path components\n " },
254
+ {"127.0.0.1:8080" , "/ipns" , http .StatusBadRequest , "invalid path \" /ipns/\" : not enough path components\n " },
253
255
{"127.0.0.1:8080" , "/" + k .Cid ().String (), http .StatusNotFound , "404 page not found\n " },
254
- {"127.0.0.1:8080" , "/ipfs/this-is-not-a-cid" , http .StatusBadRequest , "failed to resolve /ipfs/this-is-not-a-cid: invalid path \" /ipfs/this-is-not-a-cid\" : invalid CID: invalid cid: illegal base32 data at input byte 3\n " },
256
+ {"127.0.0.1:8080" , "/ipfs/this-is-not-a-cid" , http .StatusBadRequest , "invalid path \" /ipfs/this-is-not-a-cid\" : invalid CID: invalid cid: illegal base32 data at input byte 3\n " },
255
257
{"127.0.0.1:8080" , k .String (), http .StatusOK , "fnord" },
256
258
{"127.0.0.1:8080" , "/ipns/nxdomain.example.com" , http .StatusInternalServerError , "failed to resolve /ipns/nxdomain.example.com: " + namesys .ErrResolveFailed .Error () + "\n " },
257
259
{"127.0.0.1:8080" , "/ipns/%0D%0A%0D%0Ahello" , http .StatusInternalServerError , "failed to resolve /ipns/\\ r\\ n\\ r\\ nhello: " + namesys .ErrResolveFailed .Error () + "\n " },
0 commit comments