Show git commit hash of server in replies

This commit is contained in:
Christine Dodrill 2015-08-17 14:30:38 -07:00
parent 67c484ee19
commit 24ef6f4c69
1 changed files with 3 additions and 0 deletions

View File

@ -49,9 +49,12 @@ proc `%!`(why: string): JsonNode =
"error": why
}
const gitHash = staticExec "git rev-parse HEAD"
let myHeaders = {
"Content-Type": "application/json",
"X-Powered-By": "Nim and Jester",
"X-Git-Hash": gitHash,
}
settings: