-
Notifications
You must be signed in to change notification settings - Fork 527
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When trying to retrieve a Glance image using the v2 api, user will get an error: 'utf8' codec can't decode byte 0xcc in position 1217: invalid continuation byte This is because Glance client expects a response of type content-type: application/octet-stream but it's getting a Content-Type: text/html; charset=UTF-8 Transfer-Encoding: chunked The root cause is Glance will return the image data from cache if there is. However, in method _process_v2_request, the content type has never been configured. See: https://github.com/openstack/glance/blob/master/glance/api/middleware/cache.py#L162 Fixes bug 1193310 Change-Id: Icab5e28db63455358ab3919bd94c484411987e39
- Loading branch information
Fei Long Wang
committed
Jul 11, 2013
1 parent
67ec72d
commit 5e71b5e
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters