Show git commit hash of server in replies
This commit is contained in:
parent
67c484ee19
commit
24ef6f4c69
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue