day 1 patch
This commit is contained in:
parent
6bd0b5ec0e
commit
89bb46c49e
1 changed files with 5 additions and 0 deletions
5
main.go
5
main.go
|
@ -33,6 +33,7 @@ import (
|
|||
const DB_VERSION = 1
|
||||
|
||||
const DEFAULT_PORT int64 = 8080
|
||||
const HRT_DATE int64 = 1756478697
|
||||
|
||||
func main() {
|
||||
fmt.Printf("made with <3 by ari melody\n\n")
|
||||
|
@ -605,6 +606,10 @@ func DefaultHeaders(next http.Handler) http.Handler {
|
|||
"X-Powered-By",
|
||||
PoweredByStrings[rand.Intn(len(PoweredByStrings))],
|
||||
)
|
||||
w.Header().Add(
|
||||
"X-Days-Since-HRT",
|
||||
fmt.Sprint(math.Round(time.Since(time.Unix(HRT_DATE, 0)).Hours() / 24)),
|
||||
)
|
||||
next.ServeHTTP(w, r)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue