Fix var name url to u
This commit is contained in:
parent
5d72d54344
commit
c63f290928
3 changed files with 12 additions and 12 deletions
6
apps.go
6
apps.go
|
@ -45,13 +45,13 @@ func RegisterApp(appConfig *AppConfig) (*Application, error) {
|
|||
params.Set("scopes", appConfig.Scopes)
|
||||
params.Set("website", appConfig.Website)
|
||||
|
||||
url, err := url.Parse(appConfig.Server)
|
||||
u, err := url.Parse(appConfig.Server)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
url.Path = path.Join(url.Path, "/api/v1/apps")
|
||||
u.Path = path.Join(u.Path, "/api/v1/apps")
|
||||
|
||||
req, err := http.NewRequest(http.MethodPost, url.String(), strings.NewReader(params.Encode()))
|
||||
req, err := http.NewRequest(http.MethodPost, u.String(), strings.NewReader(params.Encode()))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue