mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-25 06:16:58 +00:00
Merge branch 'main' into std-http
This commit is contained in:
commit
e1c78d6069
17 changed files with 138 additions and 79 deletions
|
@ -28,7 +28,7 @@ func Handler(mainDomainSuffix, rawDomain []byte,
|
|||
dnsLookupCache, canonicalDomainCache cache.SetGetKey,
|
||||
) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, req *http.Request) {
|
||||
log := log.With().Str("Handler", req.RequestURI).Logger()
|
||||
log := log.With().Strs("Handler", []string{string(req.Host), req.RequestURI}).Logger()
|
||||
|
||||
w.Header().Set("Server", "CodebergPages/"+version.Version)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue