Skip to content

Commit

Permalink
fix(frontend): Remove unnecessary encoding in /list-files API endpo…
Browse files Browse the repository at this point in the history
…int path param (#4287)
  • Loading branch information
amanape authored Oct 9, 2024
1 parent 51387a5 commit d5fc8bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/api/open-hands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class OpenHands {
*/
static async getFiles(token: string, path?: string): Promise<string[]> {
const url = new URL(`${OpenHands.BASE_URL}/api/list-files`);
if (path) url.searchParams.append("path", encodeURIComponent(path));
if (path) url.searchParams.append("path", path);

const response = await fetch(url.toString(), {
headers: OpenHands.generateHeaders(token),
Expand Down

0 comments on commit d5fc8bc

Please sign in to comment.