From f4251fcc97314fb27f1cb5bcc9080506b7876f3e Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Tue, 22 Apr 2025 10:38:27 -0500 Subject: [PATCH] refactor --- repertory/librepertory/include/types/s3.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/repertory/librepertory/include/types/s3.hpp b/repertory/librepertory/include/types/s3.hpp index 1b9f2690..add306a1 100644 --- a/repertory/librepertory/include/types/s3.hpp +++ b/repertory/librepertory/include/types/s3.hpp @@ -50,15 +50,15 @@ using list_objects_result = std::vector; struct head_object_result { std::uint64_t content_length{}; - std::string content_type{}; - std::uint64_t last_modified{}; + std::string content_type; + std::uint64_t last_modified; - inline auto from_headers(http_headers headers) -> head_object_result & { + auto from_headers(http_headers headers) -> head_object_result & { content_length = utils::string::to_uint64(headers["content-length"]); content_type = headers["content-type"]; auto date = headers["last-modified"]; if (not date.empty()) { - struct tm tm1 {}; + struct tm tm1{}; // Mon, 17 Dec 2012 02:14:10 GMT #if defined(_WIN32) utils::time::strptime(date.c_str(), "%a, %d %b %Y %H:%M:%S %Z", &tm1);