sideshowcoder / canned

Server to respond with fake API responses, by using a directory of files for finding out what to say!
213 stars 46 forks source link

remove windows line ending when reading file #107

Closed antxxxx closed 8 years ago

antxxxx commented 8 years ago

When you have a response file with windows line endings, then when you try to request it, you get this error message problem sanatizing content for _search.get.json SyntaxError: Unexpected token { served via: ./_search.get.json This patch makes sure that when a file is read, all windows line endings are removed before any processing takes place,

sideshowcoder commented 8 years ago

Thanks! Need some way to better test on windows I guess 👍