Skip to content

Commit

Permalink
fix: populate content-type header for all event messages (#3760)
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP authored Jun 29, 2022
1 parent 19fddb2 commit 4f3d41e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions clients/client-lex-runtime-v2/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1037,6 +1037,7 @@ const serializeAws_restJson1AudioInputEvent_event = (input: AudioInputEvent, con
headers: {
":event-type": { type: "string", value: "AudioInputEvent" },
":message-type": { type: "string", value: "event" },
":content-type": { type: "string", value: "application/json" },
},
body: new Uint8Array(),
};
Expand All @@ -1052,6 +1053,7 @@ const serializeAws_restJson1ConfigurationEvent_event = (
headers: {
":event-type": { type: "string", value: "ConfigurationEvent" },
":message-type": { type: "string", value: "event" },
":content-type": { type: "string", value: "application/json" },
},
body: new Uint8Array(),
};
Expand All @@ -1067,6 +1069,7 @@ const serializeAws_restJson1DisconnectionEvent_event = (
headers: {
":event-type": { type: "string", value: "DisconnectionEvent" },
":message-type": { type: "string", value: "event" },
":content-type": { type: "string", value: "application/json" },
},
body: new Uint8Array(),
};
Expand All @@ -1079,6 +1082,7 @@ const serializeAws_restJson1DTMFInputEvent_event = (input: DTMFInputEvent, conte
headers: {
":event-type": { type: "string", value: "DTMFInputEvent" },
":message-type": { type: "string", value: "event" },
":content-type": { type: "string", value: "application/json" },
},
body: new Uint8Array(),
};
Expand All @@ -1094,6 +1098,7 @@ const serializeAws_restJson1PlaybackCompletionEvent_event = (
headers: {
":event-type": { type: "string", value: "PlaybackCompletionEvent" },
":message-type": { type: "string", value: "event" },
":content-type": { type: "string", value: "application/json" },
},
body: new Uint8Array(),
};
Expand All @@ -1106,6 +1111,7 @@ const serializeAws_restJson1TextInputEvent_event = (input: TextInputEvent, conte
headers: {
":event-type": { type: "string", value: "TextInputEvent" },
":message-type": { type: "string", value: "event" },
":content-type": { type: "string", value: "application/json" },
},
body: new Uint8Array(),
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@ const serializeAws_restJson1AudioEvent_event = (input: AudioEvent, context: __Se
headers: {
":event-type": { type: "string", value: "AudioEvent" },
":message-type": { type: "string", value: "event" },
":content-type": { type: "string", value: "application/octet-stream" },
},
body: new Uint8Array(),
};
Expand Down

0 comments on commit 4f3d41e

Please sign in to comment.