Skip to content

Commit

Permalink
fix content type
Browse files Browse the repository at this point in the history
Signed-off-by: Daniele Ahmed <[email protected]>
  • Loading branch information
Daniele Ahmed committed Jun 30, 2022
1 parent c89d655 commit e6eb8cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class RestJson(private val codegenContext: CodegenContext) : Protocol {
private val jsonDeserModule = RustModule.private("json_deser")

override val httpBindingResolver: HttpBindingResolver =
RestJsonHttpBindingResolver(codegenContext.model, ProtocolContentTypes.consistent("application/json"))
RestJsonHttpBindingResolver(codegenContext.model, ProtocolContentTypes("application/json", "application/json", "application/vnd.amazon.eventstream"))

override val defaultTimestampFormat: TimestampFormatTrait.Format = TimestampFormatTrait.Format.EPOCH_SECONDS

Expand Down

0 comments on commit e6eb8cc

Please sign in to comment.