Skip to content

Commit 1e3da4b

Browse files
committed
Ad XML comment to explain the behavior change in 8.2.0
1 parent 73d26c6 commit 1e3da4b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Source/HttpMultipartParser/StreamingBinaryMultipartFormDataParser.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,11 @@ public async Task RunAsync(CancellationToken cancellationToken = default)
244244
/// current position of the reader is the start of the file and therefore
245245
/// the beginning of the boundary.
246246
/// </summary>
247+
/// <remarks>
248+
/// As of version 8.2.0 (released in June 2023), we ignore blank lines at the
249+
/// start of the stream. In previous version, an exception was thrown if any
250+
/// blank line was present before the boundary marker.
251+
/// </remarks>
247252
/// <param name="reader">
248253
/// The binary reader to parse.
249254
/// </param>
@@ -292,6 +297,11 @@ private static string DetectBoundary(RebufferableBinaryReader reader)
292297
/// current position of the reader is the start of the file and therefore
293298
/// the beginning of the boundary.
294299
/// </summary>
300+
/// <remarks>
301+
/// As of version 8.2.0 (released in June 2023), we ignore blank lines at the
302+
/// start of the stream. In previous version, an exception was thrown if any
303+
/// blank line was present before the boundary marker.
304+
/// </remarks>
295305
/// <param name="reader">
296306
/// The binary reader to parse.
297307
/// </param>

0 commit comments

Comments
 (0)