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 +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -157,12 +157,18 @@ async function installFromMirror(
157157 abortController . abort ( ) ;
158158 } ) ;
159159
160+ /**
161+ * https://ziglang.org/download/community-mirrors/ encouraged the addition
162+ * of a `source` query parameter to specify what is making this request.
163+ * This extension is published as `ziglang.vscode-zig` so we use base it off that.
164+ */
165+ const sourceQuery = "ziglang-vscode-zig" ;
166+
160167 const artifactUrl = new URL ( fileName , mirrorUrl . toString ( ) ) ;
161- /** https://github.com/mlugg/setup-zig adds a `?source=github-actions` query parameter so we add our own. */
162- artifactUrl . searchParams . set ( "source" , "vscode-zig" ) ;
168+ artifactUrl . searchParams . set ( "source" , sourceQuery ) ;
163169
164170 const artifactMinisignUrl = new URL ( `${ fileName } .minisig` , mirrorUrl . toString ( ) ) ;
165- artifactMinisignUrl . searchParams . set ( "source" , "vscode-zig" ) ;
171+ artifactMinisignUrl . searchParams . set ( "source" , sourceQuery ) ;
166172
167173 const signatureResponse = await fetch ( artifactMinisignUrl , {
168174 signal : abortController . signal ,
You can’t perform that action at this time.
0 commit comments