-
Committer:
Tarmac
-
Author(s):
Scott Simpson
-
Date:
2011-07-13 21:17:29 UTC
-
mfrom:
(320.3.1 lp803141)
-
Revision ID:
tarmac-20110713211729-5jf22qows9vh4stz
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.