Skip to content

Commit c359993

Browse files
committed
Fix Encoding and Binary on StreamingBinaryMultipartFormDataParser
1 parent 59f0f94 commit c359993

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Source/HttpMultipartParser/StreamingBinaryMultipartFormDataParser.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class StreamingBinaryMultipartFormDataParser : IStreamingBinaryMultipartF
5858
private readonly ParserOptions _options;
5959

6060
/// <summary>
61-
/// The boundary of the multipart message as a string.
61+
/// The boundary of the multipart message as a string.
6262
/// </summary>
6363
private string boundary;
6464

@@ -242,12 +242,12 @@ public async Task RunAsync(CancellationToken cancellationToken = default)
242242
/// <summary>
243243
/// Gets the binary buffer size.
244244
/// </summary>
245-
public int BinaryBufferSize { get; private set; }
245+
public int BinaryBufferSize => _options.BinaryBufferSize;
246246

247247
/// <summary>
248248
/// Gets the encoding.
249249
/// </summary>
250-
public Encoding Encoding { get; private set; }
250+
public Encoding Encoding => _options.Encoding;
251251

252252
/// <summary>
253253
/// Gets or sets the FileHandler. Delegates attached to this property will receive sequential file stream data from this parser.

0 commit comments

Comments
 (0)