Skip to content

Commit 6010baa

Browse files
authored
Skip encoding URI.toString in download service to avoid a malformed url (microsoft#151966)
Ref: https://github.com/microsoft/vscode-update-server/issues/95
1 parent f5edc26 commit 6010baa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/platform/download/common/downloadService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class DownloadService implements IDownloadService {
2525
await this.fileService.copy(resource, target);
2626
return;
2727
}
28-
const options = { type: 'GET', url: resource.toString() };
28+
const options = { type: 'GET', url: resource.toString(true) };
2929
const context = await this.requestService.request(options, cancellationToken);
3030
if (context.res.statusCode === 200) {
3131
await this.fileService.writeFile(target, context.stream);

0 commit comments

Comments
 (0)