diff options
| author | Brian Waldon <brian.waldon@rackspace.com> | 2011-07-08 15:19:19 -0400 |
|---|---|---|
| committer | Brian Waldon <brian.waldon@rackspace.com> | 2011-07-08 15:19:19 -0400 |
| commit | 32a3cf25721173014fbd20c8f2954f015316f439 (patch) | |
| tree | 48df09f561123fe8ce7f57c076ba14e4e9926450 /nova/api | |
| parent | bb09e0e1bc1c587e7677eb5db68a8fbd293ecd5b (diff) | |
| download | nova-32a3cf25721173014fbd20c8f2954f015316f439.tar.gz nova-32a3cf25721173014fbd20c8f2954f015316f439.tar.xz nova-32a3cf25721173014fbd20c8f2954f015316f439.zip | |
removing Content-Length requirement
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/wsgi.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/nova/api/openstack/wsgi.py b/nova/api/openstack/wsgi.py index 6726531be..1a33b7744 100644 --- a/nova/api/openstack/wsgi.py +++ b/nova/api/openstack/wsgi.py @@ -176,14 +176,8 @@ class RequestDeserializer(object): LOG.debug(_("No Content-Type provided in request")) return {} - if 'Content-Length' not in request.headers: - msg = _("No Content-Length provided in request") - LOG.debug(msg) - return {} - - if not request.content_length > 0: - msg = _("Request has Content-Length of zero") - LOG.debug(msg) + if not len(request.body) > 0: + LOG.debug(_("Empty body provided in request")) return {} deserializer = self.get_body_deserializer(content_type) |
