diff --git a/v2v/test-v2v-o-rhv-upload-module/ovirtsdk4/__init__.py b/v2v/test-v2v-o-rhv-upload-module/ovirtsdk4/__init__.py index 84b9d56aa..8d1058d67 100644 --- a/v2v/test-v2v-o-rhv-upload-module/ovirtsdk4/__init__.py +++ b/v2v/test-v2v-o-rhv-upload-module/ovirtsdk4/__init__.py @@ -146,7 +146,7 @@ class RequestHandler(BaseHTTPRequestHandler): self.end_headers() def discard_request(self): - length = self.headers['Content-Length'] + length = self.headers.get('Content-Length') if length: length = int(length) content = self.rfile.read(length)