handle connection interrupted before Content-Length received for PUT requests