Made stat display of objects suppress content-length, last-modified, and etag if they aren't in the headers
This commit is contained in:
parent
80bde91333
commit
a8b239e5a0
18
bin/st
18
bin/st
@ -1323,14 +1323,16 @@ Write ACL: %s'''.strip('\n') % (conn.url.rsplit('/', 1)[-1], args[0],
|
|||||||
Account: %s
|
Account: %s
|
||||||
Container: %s
|
Container: %s
|
||||||
Object: %s
|
Object: %s
|
||||||
Content Type: %s
|
Content Type: %s'''.strip('\n') % (conn.url.rsplit('/', 1)[-1], args[0],
|
||||||
Content Length: %s
|
args[1], headers.get('content-type')))
|
||||||
Last Modified: %s
|
if 'content-length' in headers:
|
||||||
ETag: %s'''.strip('\n') % (conn.url.rsplit('/', 1)[-1], args[0],
|
print_queue.put('Content Length: %s' %
|
||||||
args[1], headers.get('content-type'),
|
headers['content-length'])
|
||||||
headers.get('content-length'),
|
if 'last-modified' in headers:
|
||||||
headers.get('last-modified'),
|
print_queue.put(' Last Modified: %s' %
|
||||||
headers.get('etag')))
|
headers['last-modified'])
|
||||||
|
if 'etag' in headers:
|
||||||
|
print_queue.put(' ETag: %s' % headers['etag'])
|
||||||
if 'x-object-manifest' in headers:
|
if 'x-object-manifest' in headers:
|
||||||
print_queue.put(' Manifest: %s' %
|
print_queue.put(' Manifest: %s' %
|
||||||
headers['x-object-manifest'])
|
headers['x-object-manifest'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user