From 5d3a94bffa6b84b8ae6408902a17c52b7f500ba6 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Thu, 27 Aug 2015 20:31:47 -0700 Subject: [PATCH] Show the time that the server was started in a HTTP header --- ponyapi.nim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ponyapi.nim b/ponyapi.nim index e0b68ae..d78ff05 100644 --- a/ponyapi.nim +++ b/ponyapi.nim @@ -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: