Leave off extra leading slash in bulk requests
这个提交包含在:
父节点
e89f41828e
当前提交
2715203d96
@ -47,7 +47,10 @@ type Request struct {
|
|||||||
|
|
||||||
// URL builds a URL for a Request
|
// URL builds a URL for a Request
|
||||||
func (req *Request) URL() *url.URL {
|
func (req *Request) URL() *url.URL {
|
||||||
path := "/" + strings.Join(req.IndexList, ",")
|
var path string
|
||||||
|
if len(req.IndexList) > 0 {
|
||||||
|
path = "/" + strings.Join(req.IndexList, ",")
|
||||||
|
}
|
||||||
|
|
||||||
if len(req.TypeList) > 0 {
|
if len(req.TypeList) > 0 {
|
||||||
path += "/" + strings.Join(req.TypeList, ",")
|
path += "/" + strings.Join(req.TypeList, ",")
|
||||||
|
正在加载...
在新工单中引用
屏蔽一个用户