Skip to content

fix: populate content-type header for all event messages #3760

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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