Skip to content

Commit 5413698

Browse files
committed
Add CRLF to ending segment in createRequestBodyForFilepaths
1 parent 1dab8bf commit 5413698

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ 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)
165+
createReadStream(absPath),
166+
'\r\n'
166167
)
167168
}
168169
return requestBody

0 commit comments

Comments
 (0)