diff --git a/fim.list b/fim.list index d318f23..4030c0c 100644 --- a/fim.list +++ b/fim.list @@ -113,6 +113,8 @@ FIM 1446305400 5 21 Scare Master FIM 1446913800 5 22 What About Discord FIM 1447518600 5 23 The Hooffields and McColts FIM 1448123400 5 24 The Mane Attraction +FIM 1448726400 5 25 The Cutie Re-Mark Part 1 +FIM 1448728200 5 26 The Cutie Re-Mark Part 2 FIM 1371340800 99 1 Equestria Girls FIM 1411862400 99 2 Equestria Girls - Rainbow Rocks FIM 1443321000 99 3 Equestria Girls - Friendship Games diff --git a/ponyapi.nim b/ponyapi.nim index 6587e4b..57cd43c 100644 --- a/ponyapi.nim +++ b/ponyapi.nim @@ -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["X-API-Options"] == "bare" or @"options" == "bare": + if request.headers.getOrDefault("X-API-Options") == "bare" or @"options" == "bare": # New "bare" reply format, easier to scrape, etc. resp code, myHeaders, pretty(%body, 4) else: