Fixed regression where non-json downloads failed