Fix POST to http.MethodPost
This commit is contained in:
parent
b4e56b6ff8
commit
9dee3fc07f
4 changed files with 11 additions and 11 deletions
2
apps.go
2
apps.go
|
@ -51,7 +51,7 @@ func RegisterApp(appConfig *AppConfig) (*Application, error) {
|
|||
}
|
||||
url.Path = path.Join(url.Path, "/api/v1/apps")
|
||||
|
||||
req, err := http.NewRequest("POST", url.String(), strings.NewReader(params.Encode()))
|
||||
req, err := http.NewRequest(http.MethodPost, url.String(), strings.NewReader(params.Encode()))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue