more episodes

This commit is contained in:
Christine Dodrill 2015-11-20 13:41:27 -08:00
parent 3e27f55a76
commit e47a4da840
2 changed files with 3 additions and 1 deletions

View File

@ -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

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["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: