Merge lp:~sasimpson/swift/lp803141 into lp:~hudson-openstack/swift/trunk
Proposed by
Scott Simpson
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | John Dickinson | ||||
Approved revision: | 321 | ||||
Merged at revision: | 324 | ||||
Proposed branch: | lp:~sasimpson/swift/lp803141 | ||||
Merge into: | lp:~hudson-openstack/swift/trunk | ||||
Diff against target: |
28 lines (+6/-4) 1 file modified
swift/obj/server.py (+6/-4) |
||||
To merge this branch: | bzr merge lp:~sasimpson/swift/lp803141 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
John Dickinson | Approve | ||
David Goetz (community) | Approve | ||
Review via email: mp+67738@code.launchpad.net |
Description of the change
webob will tack on 'charset: utf-8' for certain content-types (text/plain, startswith: text/, application/, etc) when initialized with a content-type. swift stores the content-type as passed by the client in the xattrs which was then used in the initializer for the Response in the object server. This could cause extra charsets to be appended in certain conditions. The change involves taking the content-type out of the initializer and assigning it directly to what is in the xattrs. this bypasses the webob charset addition.
To post a comment you must log in.
looks good to me