提交 86949849 作者: Dr Ian Preston 提交者: Steven Allen

Add another test case for invalid p2p http proxy path

License: MIT
Signed-off-by: 's avatarIan Preston <ianopolous@protonmail.com>
上级 7e541079
...@@ -40,6 +40,7 @@ func TestParseRequest(t *testing.T) { ...@@ -40,6 +40,7 @@ func TestParseRequest(t *testing.T) {
var invalidtestCases = []string{ var invalidtestCases = []string{
"http://localhost:5001/p2p/http/foobar", "http://localhost:5001/p2p/http/foobar",
"http://localhost:5001/p2p/QmT8JtU54XSmC38xSb1XHFSMm775VuTeajg7LWWWTAwzxT/x/custom/foobar",
} }
func TestParseRequestInvalidPath(t *testing.T) { func TestParseRequestInvalidPath(t *testing.T) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论