Allow Last-Modified header to be optional

pull/696/head
Andrew Gaul 2024-10-02 15:09:39 -07:00
rodzic b27c21330d
commit 15fe7f32e9
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -2925,8 +2925,11 @@ public class S3ProxyHandler {
response.addDateHeader(HttpHeaders.EXPIRES, expires.getTime());
}
}
response.addDateHeader(HttpHeaders.LAST_MODIFIED,
metadata.getLastModified().getTime());
Date lastModified = metadata.getLastModified();
if (lastModified != null) {
response.addDateHeader(HttpHeaders.LAST_MODIFIED,
lastModified.getTime());
}
Tier tier = metadata.getTier();
if (tier != null) {
response.addHeader(AwsHttpHeaders.STORAGE_CLASS,