Fixed bug with previous commit that returns all non-array response content as JSON