The code for processing an HTTP redirect included an incorrect method of
getting the Location header from an HTTPResponse. It needs to use the
getheader() method on the response, instead. This patch fixes that and
includes a unit test that covers this code path.
Reviewed: https:/ /review. openstack. org/48481 github. com/openstack/ python- glanceclient/ commit/ 50266eec2b86aaa 0a7717adf004576 d444f4fce9
Committed: http://
Submitter: Jenkins
Branch: master
commit 50266eec2b86aaa 0a7717adf004576 d444f4fce9
Author: Russell Bryant <email address hidden>
Date: Thu Sep 26 11:43:29 2013 -0400
Fix getting header in redirect processing
The code for processing an HTTP redirect included an incorrect method of
getting the Location header from an HTTPResponse. It needs to use the
getheader() method on the response, instead. This patch fixes that and
includes a unit test that covers this code path.
Change-Id: I0952fabad581b0 20dee07bdc4007b 55b47c906aa
Closes-Bug: #1231524