Skip to content

Commit

Permalink
Remove unnecessary code from FormData#__getHeader() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
octet-stream committed Jan 3, 2020
1 parent f4f36e8 commit 0db3b6a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/lib/FormData.mjs
Expand Up @@ -139,16 +139,6 @@ class FormData {
header += `Content-Type: ${this.__getMime(filename)}`
}
const head = [
this.__dashes, this.boundary, this.__carriage,
"Content-Disposition: form-data; ", `name="${name}"`,
]
if (filename) {
head.push(`; filename="${filename}"${this.__carriage}`)
head.push("Content-Type: ", this.__getMime(filename))
}
return `${header}${this.__carriage.repeat(2)}`
}
Expand Down

0 comments on commit 0db3b6a

Please sign in to comment.