Skip to content

Commit

Permalink
Output non-optional x-amz-glacier-version header
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Jul 22, 2024
1 parent 4236626 commit 3ab569d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SotoCodeGeneratorLib/AwsService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ struct AwsService {
case "Glacier":
return """
AWSMiddlewareStack {
AWSEditHeadersMiddleware(.add(name: \"x-amz-glacier-version\", value: \"\(service.version)\"))
AWSEditHeadersMiddleware(.add(name: \"x-amz-glacier-version\", value: \"\(service.version ?? "2012-06-01")\"))
TreeHashMiddleware(header: \"x-amz-sha256-tree-hash\")
}
"""
Expand Down

0 comments on commit 3ab569d

Please sign in to comment.