Skip to content

Commit 2c6dfbf

Browse files
MrMushrooooomschneiderlo
authored andcommitted
fix: encode non-ASCII directory paths in v1 SDK HTTP headers (anomalyco#13131)
1 parent 1b9a2a4 commit 2c6dfbf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/sdk/js/src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function createOpencodeClient(config?: Config & { directory?: string }) {
2121
if (config?.directory) {
2222
config.headers = {
2323
...config.headers,
24-
"x-opencode-directory": config.directory,
24+
"x-opencode-directory": encodeURIComponent(config.directory),
2525
}
2626
}
2727

0 commit comments

Comments
 (0)