undici 6.21.2 → 6.21.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/web/fetch/body.js +4 -1
- package/package.json +1 -1
package/lib/web/fetch/body.js
CHANGED
|
@@ -162,7 +162,10 @@ function extractBody (object, keepalive = false) {
|
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
|
|
165
|
+
// CRLF is appended to the body to function with legacy servers and match other implementations.
|
|
166
|
+
// https://github.com/curl/curl/blob/3434c6b46e682452973972e8313613dfa58cd690/lib/mime.c#L1029-L1030
|
|
167
|
+
// https://github.com/form-data/form-data/issues/63
|
|
168
|
+
const chunk = textEncoder.encode(`--${boundary}--\r\n`)
|
|
166
169
|
blobParts.push(chunk)
|
|
167
170
|
length += chunk.byteLength
|
|
168
171
|
if (hasUnknownSizeValue) {
|