Skip to content

Commit

Permalink
fix: readme path URI encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
safonovklim committed Aug 7, 2023
1 parent 86e2c52 commit 2d5ecf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gitlab/src/api/GitlabCIClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export class GitlabCIClient implements GitlabCIApi {
if (filePath.startsWith('./')) filePath = filePath.slice(2);

const readmeStr = await this.callApi<string>(
`projects/${projectID}/repository/files/${encodeURI(filePath)}/raw`,
`projects/${projectID}/repository/files/${encodeURIComponent(filePath)}/raw`,
{ ref: branch }
);

Expand Down

0 comments on commit 2d5ecf4

Please sign in to comment.