Fix response not being processed for non-JSON requests