Skip to content

Commit

Permalink
include x-amz-request-id in request id deser (smithy-lang#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe authored and srchase committed Mar 17, 2023
1 parent 71acd82 commit c3ba720
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ static void generateMetadataDeserializer(GenerationContext context, SymbolRefere
() -> {
writer.write("httpStatusCode: output.statusCode,");
writer.write("requestId: output.headers[\"x-amzn-requestid\"] ??"
+ " output.headers[\"x-amzn-request-id\"],");
+ " output.headers[\"x-amzn-request-id\"] ??"
+ " output.headers[\"x-amz-request-id\"],");
writer.write("extendedRequestId: output.headers[\"x-amz-id-2\"],");
writer.write("cfId: output.headers[\"x-amz-cf-id\"],");
});
Expand Down

0 comments on commit c3ba720

Please sign in to comment.