Fixed casing of Etag to be consistent with swift.

This commit is contained in:
Technosophos 2012-07-13 21:57:24 -05:00
parent d27aaba85e
commit 51c1f4b481

View File

@ -513,7 +513,7 @@ class Container implements \Countable, \IteratorAggregate {
if (empty($file)) {
// Now build up the rest of the headers:
$headers['ETag'] = $obj->eTag();
$headers['Etag'] = $obj->eTag();
// If chunked, we set transfer encoding; else
// we set the content length.
@ -541,7 +541,7 @@ class Container implements \Countable, \IteratorAggregate {
$hash = hash_init('md5');
hash_update_stream($hash, $file);
$etag = hash_final($hash);
$headers['ETag'] = $etag;
$headers['Etag'] = $etag;
// Not sure if this is necessary:
rewind($file);