diff --git a/src/connection.ts b/src/connection.ts index 03ee9fe..052ebfa 100644 --- a/src/connection.ts +++ b/src/connection.ts @@ -365,7 +365,8 @@ export class Connection { } else { body = String(body); } - } else if ((path && path.includes("/streams")) === true) { + } + if ((path && path.includes("/streams")) === true) { contentType = "application/json"; }