Skip to content

Commit fe5447f

Browse files
authored
Apply suggestion from @MihaZupan
1 parent 7bdeb66 commit fe5447f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xml/System.Net.Http/MultipartContent.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
<format type="text/markdown"><![CDATA[
5757
5858
## Remarks
59-
According to RFC 1341 (MIME) 7.2 and its successors, multipart messages must contain one or more body parts. When a <xref:System.Net.Http.MultipartContent> instance with zero parts is serialized, it's written as a single dummy empty part with no content headers or message body. This ensures compliance with the RFC requirement while maintaining backward compatibility. However, other HTTP clients might not interpret this message as a multipart content with zero parts, so it's recommended to add at least one part before serializing.
59+
Multipart messages must contain one or more body parts. When a <xref:System.Net.Http.MultipartContent> instance with zero parts is serialized, it's written as a single empty part with no content headers or message body.
60+
If your server does not support such contents with zero parts, consider conditionally using a different or no `HttpContent`.
6061
6162
]]></format>
6263
</remarks>

0 commit comments

Comments
 (0)