Skip to content

Commit 21dea3b

Browse files
committed
Revert "Add CRLF to ending segment in createRequestBodyForFilepaths"
This reverts commit 5413698.
1 parent e388c33 commit 21dea3b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ function createRequestBodyForFilepaths(
162162
requestBody.push(
163163
`Content-Disposition: form-data; name="${relPath}"; filename="${filename}"\r\n`,
164164
`Content-Type: application/octet-stream\r\n\r\n`,
165-
createReadStream(absPath),
166-
'\r\n'
165+
createReadStream(absPath)
167166
)
168167
}
169168
return requestBody

0 commit comments

Comments
 (0)