正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -45,7 +45,7 @@ func (serviceGateway *httplibBaseServiceGateway) createRequest(url string, metho | @@ -45,7 +45,7 @@ func (serviceGateway *httplibBaseServiceGateway) createRequest(url string, metho | ||
45 | case "head": | 45 | case "head": |
46 | request = httplib.Head(url) | 46 | request = httplib.Head(url) |
47 | break | 47 | break |
48 | - : | 48 | + default: |
49 | request = httplib.Get(url) | 49 | request = httplib.Get(url) |
50 | } | 50 | } |
51 | return request.SetTimeout(serviceGateway.connectTimeout, serviceGateway.readWriteTimeout) | 51 | return request.SetTimeout(serviceGateway.connectTimeout, serviceGateway.readWriteTimeout) |
-
请 注册 或 登录 后发表评论