From 41c2a9d2d4383b97551d55d51c05eca080b8528c Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Fri, 11 Sep 2020 01:36:56 +0000 Subject: [PATCH] Add support for alternative xmlns Used on Google's storage under https://storage.googleapis.com/bucket/ --- s3-bucket-list | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s3-bucket-list b/s3-bucket-list index cd535e3..7898dd3 100755 --- a/s3-bucket-list +++ b/s3-bucket-list @@ -69,7 +69,7 @@ while True: break attempt += 1 continue - if not body.startswith(b'\n'): + if not body.startswith(b'\n') and not body.startswith(b""): raise RuntimeError(f'Invalid body: {body[:200]}...') if b'' in body[:200] and 'marker' in params: