Skip to content

Commit

Permalink
Call endheaders when auth_token is None. Fixes bug 856721.
Browse files Browse the repository at this point in the history
(cherry picked from commit 14eb9c6)

Change-Id: I39965c311d8485a87e27e83605ee52c6b1386c71
  • Loading branch information
Dan Prince authored and markmc committed Oct 18, 2011
1 parent 1f6b213 commit 2754749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/xenserver/xenapi/etc/xapi.d/plugins/glance
Expand Up @@ -255,7 +255,7 @@ def _upload_tarball(staging_path, image_id, glance_host, glance_port, os_type,
conn.putrequest('HEAD', '/v1/images/%s' % image_id)
if auth_token:
conn.putheader('x-auth-token', auth_token)
conn.endheaders()
conn.endheaders()

resp = conn.getresponse()
if resp.status != httplib.OK:
Expand Down

0 comments on commit 2754749

Please sign in to comment.