Skip to content

Commit

Permalink
Revert "CLOUDP-169104: Fix encoding for AWS IAM usernames (#452)"
Browse files Browse the repository at this point in the history
This reverts commit 056a756.
  • Loading branch information
matt-condon committed Apr 24, 2023
1 parent 437d9b4 commit 460be54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mongodbatlas/database_users.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func (s *DatabaseUsersServiceOp) Get(ctx context.Context, databaseName, groupID,
}

basePath := fmt.Sprintf(dbUsersBasePath, groupID)
escapedEntry := url.QueryEscape(username)
escapedEntry := url.PathEscape(username)
path := fmt.Sprintf("%s/%s/%s", basePath, databaseName, escapedEntry)

req, err := s.Client.NewRequest(ctx, http.MethodGet, path, nil)
Expand Down

0 comments on commit 460be54

Please sign in to comment.