bunsenbrowser / bunsen

🔥 Bunsen Browser provides easy to use offline P2P application and file distribution that is verifiable on Android devices. https://bunsenbrowser.github.io/
117 stars 7 forks source link

Prevent crashes when reading a file that is not JSON #76

Closed rjcorwin closed 5 years ago

rjcorwin commented 5 years ago

In the test we read a file that is JSON, but files are not always JSON. This was an assumption baked into the serverside which will cause the server to crash if reading a file that is not JSON.