This commit is contained in:
Christine Dodrill 2015-11-20 13:49:09 -08:00
parent e47a4da840
commit f4bf5ebe0b
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ proc `%`(why: string): JsonNode =
template httpReply(code, body: expr): expr =
## Make things a lot simpler for replies, etc.
if request.headers.getOrDefault("X-API-Options") == "bare" or @"options" == "bare":
if request.headers["X-API-Options"] == "bare" or @"options" == "bare":
# New "bare" reply format, easier to scrape, etc.
resp code, myHeaders, pretty(%body, 4)
else: