@@ -100,7 +100,7 @@ class Admin {
100100 async publish ( recipient : any , payload : any ) : Promise < void > {
101101 const client = this . client ;
102102 const format = client . options . useBinaryProtocol ? Utils . Format . msgpack : Utils . Format . json ,
103- headers = Defaults . defaultPostHeaders ( client . options , { format } ) ,
103+ headers = Defaults . defaultPostHeaders ( client . options ) ,
104104 params = { } ;
105105 const body = Utils . mixin ( { recipient : recipient } , payload ) ;
106106
@@ -124,7 +124,7 @@ class DeviceRegistrations {
124124 const client = this . client ;
125125 const body = DeviceDetails . fromValues ( device ) ;
126126 const format = client . options . useBinaryProtocol ? Utils . Format . msgpack : Utils . Format . json ,
127- headers = Defaults . defaultPostHeaders ( client . options , { format } ) ,
127+ headers = Defaults . defaultPostHeaders ( client . options ) ,
128128 params = { } ;
129129
130130 Utils . mixin ( headers , client . options . headers ) ;
@@ -152,7 +152,7 @@ class DeviceRegistrations {
152152 async get ( deviceIdOrDetails : any ) : Promise < DeviceDetails > {
153153 const client = this . client ,
154154 format = client . options . useBinaryProtocol ? Utils . Format . msgpack : Utils . Format . json ,
155- headers = Defaults . defaultGetHeaders ( client . options , { format } ) ,
155+ headers = Defaults . defaultGetHeaders ( client . options ) ,
156156 deviceId = deviceIdOrDetails . id || deviceIdOrDetails ;
157157
158158 if ( typeof deviceId !== 'string' || ! deviceId . length ) {
@@ -185,7 +185,7 @@ class DeviceRegistrations {
185185 const client = this . client ,
186186 format = client . options . useBinaryProtocol ? Utils . Format . msgpack : Utils . Format . json ,
187187 envelope = this . client . http . supportsLinkHeaders ? undefined : format ,
188- headers = Defaults . defaultGetHeaders ( client . options , { format } ) ;
188+ headers = Defaults . defaultGetHeaders ( client . options ) ;
189189
190190 Utils . mixin ( headers , client . options . headers ) ;
191191
@@ -204,8 +204,7 @@ class DeviceRegistrations {
204204
205205 async remove ( deviceIdOrDetails : any ) : Promise < void > {
206206 const client = this . client ,
207- format = client . options . useBinaryProtocol ? Utils . Format . msgpack : Utils . Format . json ,
208- headers = Defaults . defaultGetHeaders ( client . options , { format } ) ,
207+ headers = Defaults . defaultGetHeaders ( client . options ) ,
209208 params = { } ,
210209 deviceId = deviceIdOrDetails . id || deviceIdOrDetails ;
211210
@@ -255,7 +254,7 @@ class ChannelSubscriptions {
255254 const client = this . client ;
256255 const body = PushChannelSubscription . fromValues ( subscription ) ;
257256 const format = client . options . useBinaryProtocol ? Utils . Format . msgpack : Utils . Format . json ,
258- headers = Defaults . defaultPostHeaders ( client . options , { format } ) ,
257+ headers = Defaults . defaultPostHeaders ( client . options ) ,
259258 params = { } ;
260259
261260 Utils . mixin ( headers , client . options . headers ) ;
@@ -284,7 +283,7 @@ class ChannelSubscriptions {
284283 const client = this . client ,
285284 format = client . options . useBinaryProtocol ? Utils . Format . msgpack : Utils . Format . json ,
286285 envelope = this . client . http . supportsLinkHeaders ? undefined : format ,
287- headers = Defaults . defaultGetHeaders ( client . options , { format } ) ;
286+ headers = Defaults . defaultGetHeaders ( client . options ) ;
288287
289288 Utils . mixin ( headers , client . options . headers ) ;
290289
@@ -320,7 +319,7 @@ class ChannelSubscriptions {
320319 const client = this . client ,
321320 format = client . options . useBinaryProtocol ? Utils . Format . msgpack : Utils . Format . json ,
322321 envelope = this . client . http . supportsLinkHeaders ? undefined : format ,
323- headers = Defaults . defaultGetHeaders ( client . options , { format } ) ;
322+ headers = Defaults . defaultGetHeaders ( client . options ) ;
324323
325324 Utils . mixin ( headers , client . options . headers ) ;
326325
0 commit comments