File tree Expand file tree Collapse file tree 6 files changed +133
-230
lines changed
unit_tests/util_functions_tests Expand file tree Collapse file tree 6 files changed +133
-230
lines changed Original file line number Diff line number Diff 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-
681669function 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;
861849exports . parse_body_object_lock_conf_xml = parse_body_object_lock_conf_xml ;
862850exports . parse_to_camel_case = parse_to_camel_case ;
863851exports . _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 ;
866852exports . XATTR_SORT_SYMBOL = XATTR_SORT_SYMBOL ;
867853exports . get_response_field_encoder = get_response_field_encoder ;
868854exports . response_field_encoder_url = response_field_encoder_url ;
You can’t perform that action at this time.
0 commit comments