This commit is contained in:
李子铭 2024-12-10 15:46:52 +08:00
parent ce9fc21598
commit 6be34832c2
1 changed files with 2 additions and 2 deletions

View File

@ -60,11 +60,11 @@ func Request(_ context.Context, method, url string, body []byte, options ...Opti
"Content-Type": []string{"application/json"}, "Content-Type": []string{"application/json"},
}, },
Timeout: 15 * time.Second,
StatusCodeFunc: func(code int) bool { StatusCodeFunc: func(code int) bool {
return code == http.StatusOK return code == http.StatusOK
}, },
Timeout: 15 * time.Second,
} }
for _, option := range options { for _, option := range options {