File tree Expand file tree Collapse file tree 6 files changed +127
-225
lines changed
unit_tests/util_functions_tests Expand file tree Collapse file tree 6 files changed +127
-225
lines changed Original file line number Diff line number Diff line change @@ -666,18 +666,6 @@ function parse_body_logging_xml(req) {
666
666
return logging ;
667
667
}
668
668
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
-
681
669
function get_response_field_encoder ( req ) {
682
670
const encoding_type = req . query [ 'encoding-type' ] ;
683
671
if ( ( typeof encoding_type === 'undefined' ) || ( encoding_type === null ) ) return response_field_encoder_none ;
@@ -861,8 +849,6 @@ exports.parse_lock_header = parse_lock_header;
861
849
exports . parse_body_object_lock_conf_xml = parse_body_object_lock_conf_xml ;
862
850
exports . parse_to_camel_case = parse_to_camel_case ;
863
851
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 ;
866
852
exports . XATTR_SORT_SYMBOL = XATTR_SORT_SYMBOL ;
867
853
exports . get_response_field_encoder = get_response_field_encoder ;
868
854
exports . response_field_encoder_url = response_field_encoder_url ;
You can’t perform that action at this time.
0 commit comments