v2: Content-Type: application/octet-stream header always added
Bug #1641239 reported by
Carlos Konstanski
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance Client |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
File: common/http.py
Class: _BaseHTTPClient
Method: _set_common_
This method wants to set the header Content-Type: application/
The bug: it cannot find the existing header because the call to headers.get() fails. Therefore we end up with two Content-Type headers.
The cause: the strings in headers are converted from unicode sequences of type <str> to utf-8 sequences of type <bytes>. This happens in oslo_utils/
Proposed fix: change the headers.get() call to look like the following:
content_type = headers.
Changed in python-glanceclient: | |
status: | New → In Progress |
status: | In Progress → Fix Committed |
status: | Fix Committed → In Progress |
To post a comment you must log in.
I will submit a patch. A good first bug fix in openstack.