diff --git a/ponyapi.nim b/ponyapi.nim index 4fe334c..53df44b 100644 --- a/ponyapi.nim +++ b/ponyapi.nim @@ -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: