Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added favicon.ico
Binary file not shown.
6 changes: 6 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package main

import (
"crypto/sha256"
"embed"
_ "embed"
"errors"
"flag"
"fmt"
Expand All @@ -26,6 +28,9 @@ const PubKey = "RWSGOq2NVecA2UPNdBUZykf1CCb147pkmdtYxgb3Ti+JO/wCYvhbAb/U"
const ZigMirrorRelease = "https://ziglang.org/download"
const ZigMirrorBuilds = "https://ziglang.org/builds"

//go:embed favicon.ico
var favicon embed.FS

type zigVersion struct {
maj uint32
min uint32
Expand Down Expand Up @@ -77,6 +82,7 @@ func main() {
reg := registry.Init()

mux := http.NewServeMux()
mux.Handle("GET /favicon.ico", http.FileServer(http.FS(favicon)))
mux.HandleFunc("GET /{filename}", func(w http.ResponseWriter, r *http.Request) {
fileName := r.PathValue("filename")
sugar := logger.Sugar().With("filename", fileName)
Expand Down
Loading