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.
@@ -162,7 +162,10 @@ function extractBody (object, keepalive = false) {
162
162
  }
163
163
  }
164
164
 
165
- const chunk = textEncoder.encode(`--${boundary}--`)
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "undici",
3
- "version": "6.21.2",
3
+ "version": "6.21.3",
4
4
  "description": "An HTTP/1.1 client, written from scratch for Node.js",
5
5
  "homepage": "https://undici.nodejs.org",
6
6
  "bugs": {