Skip to content

Commit

Permalink
trims values in toObject
Browse files Browse the repository at this point in the history
  • Loading branch information
zellwk committed Apr 17, 2023
1 parent 5c7efbb commit 0079fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function debugHeaders(requestOptions) {
export function toObject(formData) {
const obj = {}
for (const data of formData) {
obj[data[0]] = data[1]
obj[data[0]] = data[1].trim()
}
return obj
}
Expand Down

0 comments on commit 0079fcd

Please sign in to comment.