Skip to content

Commit

Permalink
Handle httpChecksum.requestChecksumRequired trait (#4037)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Feb 24, 2022
1 parent 488f6ad commit ece688e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/model/operation.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ function Operation(name, operation, options) {
(operation.endpointdiscovery.required ? 'REQUIRED' : 'OPTIONAL') :
'NULL'
);
property(this, 'httpChecksumRequired', operation.httpChecksumRequired, false);

// httpChecksum replaces usage of httpChecksumRequired, but some APIs
// (s3control) still uses old trait.
var httpChecksumRequired = operation.httpChecksumRequired
|| (operation.httpChecksum && operation.httpChecksum.requestChecksumRequired);
property(this, 'httpChecksumRequired', httpChecksumRequired, false);

memoizedProperty(this, 'input', function() {
if (!operation.input) {
Expand Down

0 comments on commit ece688e

Please sign in to comment.