Skip to content

Commit 3a536cc

Browse files
timocovmtdowling
authored andcommitted
Fixed content-type serialization for lists
1 parent 8195eff commit 3a536cc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

http/http-binding/src/main/java/software/amazon/smithy/java/http/binding/PayloadSerializer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ public void writeStruct(Schema schema, SerializableStruct struct) {
9494

9595
@Override
9696
public <T> void writeList(Schema schema, T listState, int size, BiConsumer<T, ShapeSerializer> consumer) {
97+
serializer.writePayloadContentType();
9798
structSerializer.writeList(schema, listState, size, consumer);
9899
}
99100

0 commit comments

Comments
 (0)