Commit 7292d53
committed
feat(s3-proxy): expose x-amz-restore to JS for Glacier rehydration
The catalog's archived/restore detection (parseRestoreHeader, isEffectivelyArchived)
reads the x-amz-restore HEAD response header to distinguish ongoing/expired
restores from cold-archived objects. The s3-proxy was hard-coding the
Access-Control-Expose-Headers list (and stripping S3's own) without including
x-amz-restore, so browsers received the header but JS couldn't read it —
rehydrated objects stayed showing 'Object Archived' instead of flipping to
'Restore in progress'. Add the header to the expose list.1 parent 5c89375 commit 7292d53
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments