Skip to content

Commit e6b1a52

Browse files
CopilotMihaZupangewarren
authored
Document MultipartContent zero-part serialization behavior (#12014)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: MihaZupan <25307628+MihaZupan@users.noreply.github.com> Co-authored-by: Miha Zupan <mihazupan.zupan1@gmail.com> Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
1 parent c6ef878 commit e6b1a52

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

xml/System.Net.Http/MultipartContent.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@
5252
</Attributes>
5353
<Docs>
5454
<summary>Provides a collection of <see cref="T:System.Net.Http.HttpContent" /> objects that get serialized using the multipart/* content type specification.</summary>
55-
<remarks>To be added.</remarks>
55+
<remarks>
56+
Multipart messages must contain one or more body parts. When a <see cref="T: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.
57+
If your server doesn't support such contents with zero parts, consider conditionally using a different <see cref="T:System.Net.Http.HttpContent" /> type or no <see cref="T:System.Net.Http.HttpContent" />.
58+
</remarks>
5659
</Docs>
5760
<Members>
5861
<MemberGroup MemberName=".ctor">

0 commit comments

Comments
 (0)