-
-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Description
Describe the bug
调用parseRawHttpRequest方法,不初始化req中的MethodOption调用会导致空指针panic
To Reproduce
// 把可读的 RawRequestReq ,解析为 http 请求的参数 rawHttpRequestParam
func (r *Lark) parseRawHttpRequest(ctx context.Context, req *RawRequestReq) (*rawHttpRequest, error) {
// 0 init
rawHttpReq := &rawHttpRequest{
Scope: req.Scope,
API: req.API,
Method: strings.ToUpper(req.Method),
Headers: map[string]string{},
URL: req.URL,
Timeout: r.timeout,
}
if req.MethodOption.timeout > 0 {
rawHttpReq.Timeout = req.MethodOption.timeout
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels