Skip to content

Commit 1858307

Browse files
committed
check-mirrors: add 'source' query parameter
'check-mirrors' is no exception: every well-behaved user of mirrors should be setting this query parameter to something.
1 parent 86a6b48 commit 1858307

File tree

3 files changed

+1
-44
lines changed

3 files changed

+1
-44
lines changed

check-mirrors/main.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ fn checkOneFile(
364364
const mirror_prog_node = prog_node.start(mirror.username, 0);
365365
defer mirror_prog_node.end();
366366

367-
const url = std.fmt.allocPrint(arena, "{s}/{s}", .{ mirror.url, file.name }) catch |err| switch (err) {
367+
const url = std.fmt.allocPrint(arena, "{s}/{s}?source=health-check", .{ mirror.url, file.name }) catch |err| switch (err) {
368368
error.OutOfMemory => return oom.store(true, .monotonic),
369369
};
370370

check-mirrors/src/main.zig

Lines changed: 0 additions & 24 deletions
This file was deleted.

check-mirrors/src/root.zig

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)