Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Edited Issue: request.Content.ReadAsMultipartAsync() throws an InvalidOperationException if a part has two Content-Type headers [1168]

$
0
0
If a part of a multipart message contains two Content-Type headers, request.Content.ReadAsMultipartAsync() throws the following:

System.InvalidOperationException: Error parsing MIME multipart body part header byte 115 of data segment System.Byte[]. at System.Net.Http.Formatting.Parsers.MimeMultipartBodyPartParser.<ParseBuffer>d__0.MoveNext() at System.Net.Http.HttpContentMultipartExtensions.MoveNextPart(MultipartAsyncContext context)

I expect a 400 in this case.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>