From 51e58cffbe8172850066ca4890a1d6a4df08336a Mon Sep 17 00:00:00 2001 From: Ian1971 Date: Mon, 10 May 2021 12:15:47 +0100 Subject: [PATCH] Allow HeadersSize to be null This is the case with some HAR files generated by chrome --- src/HarSharp/MessageBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HarSharp/MessageBase.cs b/src/HarSharp/MessageBase.cs index 07efd84..693ffc9 100644 --- a/src/HarSharp/MessageBase.cs +++ b/src/HarSharp/MessageBase.cs @@ -37,7 +37,7 @@ protected MessageBase() /// /// Gets or sets the total number of bytes from the start of the HTTP request message until (and including) the double CRLF before the body. /// - public int HeadersSize { get; set; } + public int? HeadersSize { get; set; } /// /// Gets or sets the size of the request body (POST data payload) in bytes.