This repository was archived by the owner on Nov 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -157,18 +157,16 @@ async function installFromMirror(
157157 abortController . abort ( ) ;
158158 } ) ;
159159
160+ const artifactUrl = new URL ( fileName , mirrorUrl . toString ( ) + ( mirrorUrl . path . endsWith ( "/" ) ? "" : "/" ) ) ;
161+ const artifactMinisignUrl = new URL ( `${ artifactUrl . toString ( ) } .minisig` ) ;
162+
160163 /**
161164 * https://ziglang.org/download/community-mirrors/ encouraged the addition
162165 * of a `source` query parameter to specify what is making this request.
163166 * This extension is published as `ziglang.vscode-zig` so we use base it off that.
164167 */
165- const sourceQuery = "ziglang-vscode-zig" ;
166-
167- const artifactUrl = new URL ( fileName , mirrorUrl . toString ( ) + ( mirrorUrl . path . endsWith ( "/" ) ? "" : "/" ) ) ;
168- artifactUrl . searchParams . set ( "source" , sourceQuery ) ;
169-
170- const artifactMinisignUrl = new URL ( `${ artifactUrl . toString ( ) } .minisig` ) ;
171- artifactMinisignUrl . searchParams . set ( "source" , sourceQuery ) ;
168+ artifactUrl . searchParams . set ( "source" , "ziglang-vscode-zig" ) ;
169+ artifactMinisignUrl . searchParams . set ( "source" , "ziglang-vscode-zig" ) ;
172170
173171 const signatureResponse = await fetch ( artifactMinisignUrl , {
174172 signal : abortController . signal ,
You can’t perform that action at this time.
0 commit comments