]> Cypherpunks.ru repositories - gocheese.git/blobdiff - main.go
Update dependencies
[gocheese.git] / main.go
diff --git a/main.go b/main.go
index 7163b871942ff1ad929f5133396435908ce64c2b..f4a4359e677f63e54f5723f6bd06fa5d8fc6a83d 100644 (file)
--- a/main.go
+++ b/main.go
@@ -47,9 +47,11 @@ import (
 
 const (
        Version   = "3.0.0"
+       UserAgent = "GoCheese/" + Version
        HTMLBegin = `<!DOCTYPE html>
 <html>
   <head>
+    <meta name="pypi:repository-version" content="1.0">
     <title>Links for %s</title>
   </head>
   <body>
@@ -230,6 +232,7 @@ func servePkg(w http.ResponseWriter, r *http.Request, pkgName, filename string)
 }
 
 func handler(w http.ResponseWriter, r *http.Request) {
+       w.Header().Set("Server", UserAgent)
        switch r.Method {
        case "GET":
                var path string