diff --git a/zfblast.nimble b/zfblast.nimble index d128359..25fcca5 100755 --- a/zfblast.nimble +++ b/zfblast.nimble @@ -1,5 +1,5 @@ # Package -version = "0.2.6" +version = "0.2.7" author = "Amru Rosyada" description = "High performance http server (https://tools.ietf.org/html/rfc2616) with persistent connection for nim language" license = "BSD" diff --git a/zfblast.nimble~ b/zfblast.nimble~ index 1a4b737..d128359 100755 --- a/zfblast.nimble~ +++ b/zfblast.nimble~ @@ -1,5 +1,5 @@ # Package -version = "0.2.5" +version = "0.2.6" author = "Amru Rosyada" description = "High performance http server (https://tools.ietf.org/html/rfc2616) with persistent connection for nim language" license = "BSD" diff --git a/zfblast/server.nim b/zfblast/server.nim index 81b80eb..0a3dbfd 100755 --- a/zfblast/server.nim +++ b/zfblast/server.nim @@ -697,6 +697,14 @@ proc newZFBlast*( result = instance ### +proc getBuildMode*(): string = + ## + ## get build mode will return string "debug" or "release" + ## + result = "debug" + if defined(release): + result = "release" + # test server if isMainModule: #[