-
Committer:
James Westby
-
Date:
2014-09-22 13:53:34 UTC
-
Revision ID:
james.westby@canonical.com-20140922135334-zeckgvot6a9xc40d
Use StringIO to keep compatibility with old version of swiftlib.
They older versions use httplib, and if you pass a string as a body
they expect it to be unicode. We can't be sure how to decode every file.
We instead pass as a StringIO, so that it just sends the bytes.