Skip to content

Commit

Permalink
Update spacing to match smithy definition
Browse files Browse the repository at this point in the history
  • Loading branch information
jterapin committed Feb 27, 2024
1 parent 79a371c commit dda8826
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def request_encoding_selection(context)
def update_content_encoding(encoding, context)
headers = context.http_request.headers
if headers['Content-Encoding']
headers['Content-Encoding'] += ',' + encoding
headers['Content-Encoding'] += ", #{encoding}"
else
headers['Content-Encoding'] = encoding
end
Expand Down
2 changes: 1 addition & 1 deletion gems/aws-sdk-core/lib/aws-sdk-core/rest/request/headers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def list(headers, ref, value)
headers[ref.location_name] = value
.compact
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
.join(',')
.join(', ')
end

def apply_header_map(headers, ref, values)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def cast_value(ref, value)
when FloatShape then value.to_f
when BooleanShape then value == 'true'
when ListShape then
value.split(",").map { |v| cast_value(ref.shape.member, v) }
value.split(", ").map { |v| cast_value(ref.shape.member, v) }
when TimestampShape
if value =~ /^\d+(\.\d*)/
Time.at(value.to_f)
Expand Down

0 comments on commit dda8826

Please sign in to comment.