Nil request body with retry
This commit is contained in:
parent
37d8e32e0b
commit
3f044c48fa
4 changed files with 6 additions and 3 deletions
|
@ -120,7 +120,7 @@ func newRequest(baseURL string) (*http.Request, error) {
|
|||
return nil, fmt.Errorf("error pages: error when parse URL: %v", err)
|
||||
}
|
||||
|
||||
req, err := http.NewRequest(http.MethodGet, u.String(), nil)
|
||||
req, err := http.NewRequest(http.MethodGet, u.String(), http.NoBody)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error pages: error when create query: %v", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue