Skip to content

Commit 02ff2f8

Browse files
committed
SDK | Upgrade AWS SDK to v3 - Namespace_S3
Signed-off-by: Naveen Paul <[email protected]>
1 parent b7918b3 commit 02ff2f8

File tree

6 files changed

+127
-224
lines changed

6 files changed

+127
-224
lines changed

src/endpoint/s3/s3_utils.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -666,18 +666,6 @@ function parse_body_logging_xml(req) {
666666
return logging;
667667
}
668668

669-
function get_http_response_date(res) {
670-
const r = get_http_response_from_resp(res);
671-
if (!r.httpResponse.headers.date) throw new Error("date not found in response header");
672-
return r.httpResponse.headers.date;
673-
}
674-
675-
function get_http_response_from_resp(res) {
676-
const r = res.$response;
677-
if (!r) throw new Error("no $response in s3 returned object");
678-
return r;
679-
}
680-
681669
function get_response_field_encoder(req) {
682670
const encoding_type = req.query['encoding-type'];
683671
if ((typeof encoding_type === 'undefined') || (encoding_type === null)) return response_field_encoder_none;
@@ -861,8 +849,6 @@ exports.parse_lock_header = parse_lock_header;
861849
exports.parse_body_object_lock_conf_xml = parse_body_object_lock_conf_xml;
862850
exports.parse_to_camel_case = parse_to_camel_case;
863851
exports._is_valid_retention = _is_valid_retention;
864-
exports.get_http_response_from_resp = get_http_response_from_resp;
865-
exports.get_http_response_date = get_http_response_date;
866852
exports.XATTR_SORT_SYMBOL = XATTR_SORT_SYMBOL;
867853
exports.get_response_field_encoder = get_response_field_encoder;
868854
exports.response_field_encoder_url = response_field_encoder_url;

0 commit comments

Comments
 (0)