You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The line must not be empty and must starts with "--".
327
+
if(string.IsNullOrEmpty(line))thrownewMultipartParseException("Unable to determine boundary: either the stream is empty or we reached the end of the stream");
328
+
elseif(!line.StartsWith("--"))thrownewMultipartParseException("Unable to determine boundary: content is not a valid multipart boundary");
329
+
330
+
// Remove the two dashes
331
+
stringboundary=line.Substring(2);
319
332
320
333
// If the string ends with '--' it means that we found the "end" boundary and we
321
334
// need to trim the two dashes to get the actual boundary.
0 commit comments