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 "--".
260
-
if(string.IsNullOrEmpty(line))thrownewMultipartParseException("Unable to determine boundary: unexpected end of stream");
260
+
if(string.IsNullOrEmpty(line))thrownewMultipartParseException("Unable to determine boundary: either the stream is empty or we reached the end of the stream");
261
261
elseif(!line.StartsWith("--"))thrownewMultipartParseException("Unable to determine boundary: content does not start with a valid multipart boundary");
262
262
263
263
// Remove the two dashes
@@ -300,7 +300,7 @@ private static async Task<string> DetectBoundaryAsync(RebufferableBinaryReader r
300
300
301
301
// The line must not be empty and must starts with "--".
302
302
if(string.IsNullOrEmpty(line))thrownewMultipartParseException("Unable to determine boundary: either the stream is empty or we reached the end of the stream");
303
-
elseif(!line.StartsWith("--"))thrownewMultipartParseException("Unable to determine boundary: content is not a valid multipart boundary");
303
+
elseif(!line.StartsWith("--"))thrownewMultipartParseException("Unable to determine boundary: content does not start with a valid multipart boundary");
0 commit comments