Skip to content

Commit

Permalink
Merge pull request #988 from npamudika/master
Browse files Browse the repository at this point in the history
Add url encoding to application name
  • Loading branch information
imsuneth authored Jul 23, 2023
2 parents d8347c0 + 345238e commit e5a5b18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion import-export-cli/impl/apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"errors"
"fmt"
"net/http"
"net/url"
"os"
"path"

Expand All @@ -37,7 +38,7 @@ import (
func GetAppId(accessToken, environment, appName, appOwner string) (string, error) {
// Application REST API endpoint of the environment from the config file
applicationEndpoint := utils.GetAdminApplicationListEndpointOfEnv(environment, utils.MainConfigFilePath) +
"?user=" + appOwner + "&name=" + appName
"?user=" + appOwner + "&name=" + url.QueryEscape(appName)

// Prepping headers
headers := make(map[string]string)
Expand Down

0 comments on commit e5a5b18

Please sign in to comment.