Skip to content

Commit

Permalink
Blank Content Type (#2571)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskerr authored Oct 25, 2022
1 parent c18c7df commit ab5b75d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/zealot/src/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export class Client {
method: "POST",
body: data,
headers,
contentType: "",
signal: opts.signal,
fetch: nodeFetch,
timeout: Infinity,
Expand Down Expand Up @@ -173,7 +174,7 @@ export class Client {
const fetch = (opts.fetch || this.fetch) as Types.NodeFetch // Make typescript happy
const headers = new Headers(opts.headers)
headers.set("Accept", accept(opts.format || "zjson"))
if (opts.contentType) {
if (opts.contentType !== undefined) {
headers.set("Content-Type", opts.contentType)
}
if (this.auth) {
Expand Down

0 comments on commit ab5b75d

Please sign in to comment.