Skip to content

Commit e23b01c

Browse files
authored
Revert "CLOUDP-169104: Fix encoding for AWS IAM usernames (#452)" (#465)
1 parent 437d9b4 commit e23b01c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mongodbatlas/database_users.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ func (s *DatabaseUsersServiceOp) Get(ctx context.Context, databaseName, groupID,
161161
}
162162

163163
basePath := fmt.Sprintf(dbUsersBasePath, groupID)
164-
escapedEntry := url.QueryEscape(username)
164+
escapedEntry := url.PathEscape(username)
165165
path := fmt.Sprintf("%s/%s/%s", basePath, databaseName, escapedEntry)
166166

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

0 commit comments

Comments
 (0)