Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Commit

Permalink
fix: Wrong content-type for MULTIPART
Browse files Browse the repository at this point in the history
  • Loading branch information
andreidmt committed May 27, 2020
1 parent 178505b commit cd1a660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const request = (
)

const isReqJSON = pipe(
get("content-type"),
get("content-type", ""),
startsWith("application/json")
)(HEADERS)

Expand Down Expand Up @@ -158,7 +158,7 @@ export const MULTIPART = (url, { body = {}, headers } = {}) => {
...headers,

// remove content-type header or browser boundery wont get set
"Content-Type": undefined,
"content-type": undefined,
},
})
}
Expand Down

0 comments on commit cd1a660

Please sign in to comment.