[External Source] Fixes an issue downloading JSON specs

Closes #2320 

This is an incomplete PR, I haven't had time to build a fixture repository for the tests. Just putting it here incase anyone wants to finish it, or so people can use the patch if they need this.