Show the time that the server was started in a HTTP header

This commit is contained in:
Christine Dodrill 2015-08-27 20:31:47 -07:00
parent a0688e4b55
commit 5d3a94bffa
1 changed files with 4 additions and 3 deletions

View File

@ -51,9 +51,10 @@ proc `%!`(why: string): JsonNode =
}
let myHeaders = {
"Content-Type": "application/json",
"X-Powered-By": "Nim and Jester",
"X-Git-Hash": getEnv("GIT_REV"),
"Content-Type": "application/json",
"X-Powered-By": "Nim and Jester",
"X-Git-Hash": getEnv("GIT_REV"),
"X-Server-Epoch": $ getTime().toSeconds().int,
}
settings: