diff --git a/src/apis/createHeaders.ts b/src/apis/createHeaders.ts index b439895..2404d7a 100644 --- a/src/apis/createHeaders.ts +++ b/src/apis/createHeaders.ts @@ -4,7 +4,10 @@ export const createHeaders = (config: Record): Record = {} for (let k in config) { - let v = config[k] + let v = config[k]; + + if (isEmpty(v)) continue; + // convert to snakecase if (k.toLocaleLowerCase() === "authorization") { headers[k.toLowerCase()] = v || ""