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
|
"error": why
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const gitHash = staticExec "git rev-parse HEAD"
|
||||||
|
|
||||||
let myHeaders = {
|
let myHeaders = {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
"X-Powered-By": "Nim and Jester",
|
"X-Powered-By": "Nim and Jester",
|
||||||
|
"X-Git-Hash": gitHash,
|
||||||
}
|
}
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
|
|
Loading…
Reference in New Issue