in swift, content type no longer appends charset when you don't tell it to

This commit is contained in:
Adrian Cole 2011-07-28 02:44:21 -07:00
parent 27c45dce0d
commit ba1b7da181
1 changed files with 2 additions and 2 deletions

View File

@ -203,7 +203,7 @@ public abstract class CommonSwiftClientLiveTest<C extends CommonSwiftClient> ext
assertEquals(metadata.getName(), object.getInfo().getName());
assertEquals(metadata.getBytes(), new Long(data.length()));
assertEquals(metadata.getContentType(), "text/plain; charset=UTF-8");
assert metadata.getContentType().startsWith("text/plain") : metadata.getContentType();
assertEquals(CryptoStreams.hex(md5), CryptoStreams.hex(metadata.getHash()));
assertEquals(metadata.getHash(), CryptoStreams.hex(newEtag));
@ -224,7 +224,7 @@ public abstract class CommonSwiftClientLiveTest<C extends CommonSwiftClient> ext
// TODO assertEquals(getBlob.getName(),
// object.getMetadata().getName());
assertEquals(getBlob.getInfo().getBytes(), new Long(data.length()));
assertEquals(getBlob.getInfo().getContentType(), "text/plain; charset=UTF-8");
assert getBlob.getInfo().getContentType().startsWith("text/plain") : getBlob.getInfo().getContentType();
assertEquals(CryptoStreams.hex(md5), CryptoStreams.hex(getBlob.getInfo().getHash()));
assertEquals(CryptoStreams.hex(newEtag), getBlob.getInfo().getHash());
assertEquals(getBlob.getInfo().getMetadata().entrySet().size(), 2);