Redirect processing doesn't work
Bug #1231524 reported by
Russell Bryant
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance Client |
Fix Released
|
Undecided
|
Russell Bryant |
Bug Description
The code for processing an HTTP redirect has the following code:
elif resp.status in (301, 302, 305):
# Redirected. Reissue the request to the new location.
return self._http_
The problem is the way it tries to get the location header. HTTPResponse doesn't support this. You have to call the getheader() method on the response, instead.
Changed in python-glanceclient: | |
assignee: | nobody → Russell Bryant (russellb) |
Changed in python-glanceclient: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Related fix proposed to branch: master /review. openstack. org/48480
Review: https:/