Skip to content

Commit f8a3065

Browse files
committed
v1.3.4.2
- When renaming Transfer-Encoding/Chunk-Encoding headers, set Content-Length to enhance AutoResponder playback - Update info link to point to my blog - Update copyright to 2023
1 parent 36e0e52 commit f8a3065

File tree

5 files changed

+24
-6
lines changed

5 files changed

+24
-6
lines changed

FiddlerImportNetlog/FiddlerInterface.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
namespace FiddlerImportNetlog
1010
{
11-
[ProfferFormat("NetLog JSON",
12-
"Chromium's JSON-based event log format (v1.3.4.1). See https://dev.chromium.org/for-testers/providing-network-details for more details.",
11+
[ProfferFormat("NetLog JSON",
12+
"Chromium's JSON-based event log format (v1.3.4.2). See https://textslashplain.com/2020/01/17/capture-network-logs-from-edge-and-chrome/ for more info.",
1313
// We handle import of JSON files, whether uncompressed, or compressed with ZIP or GZ. I'm not completely sure I remember the implications
1414
// of declaring .gz here, nor why .zip isn't mentioned. Is this about the drag/drop import feature?
1515
".json;.gz"

FiddlerImportNetlog/Importer.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1538,6 +1538,7 @@ private void BuildAndAddSession(ref SessionFlags oSF, HTTPRequestHeaders oRQH, H
15381538
{
15391539
oRQH = Fiddler.Parser.ParseRequest(sMethod + " " + sURL + " HTTP/1.1\r\nMissing-Data: Request Headers not captured in NetLog\r\n\r\n");
15401540
}
1541+
15411542
if (msResponseBody.Length < 1 && cbDroppedResponseBody > 0)
15421543
{
15431544
dictSessionFlags["X-RESPONSEBODYTRANSFERLENGTH"] = cbDroppedResponseBody.ToString("N0");
@@ -1550,6 +1551,12 @@ private void BuildAndAddSession(ref SessionFlags oSF, HTTPRequestHeaders oRQH, H
15501551
// headers so we can use this session for AutoResponder playback, etc.
15511552
oRPH.RenameHeaderItems("Content-Encoding", "X-Netlog-Removed-Content-Encoding");
15521553
oRPH.RenameHeaderItems("Transfer-Encoding", "X-Netlog-Removed-Transfer-Encoding");
1554+
string sOriginalCL = oRPH["Content-Length"];
1555+
oRPH["Content-Length"] = msResponseBody.Length.ToString();
1556+
if (!String.IsNullOrEmpty(sOriginalCL) && oRPH["Content-Length"] != sOriginalCL)
1557+
{
1558+
oRPH["X-Netlog-Original-Content-Length"] = sOriginalCL;
1559+
}
15531560
}
15541561

15551562
Session oS = Session.BuildFromData(false,

FiddlerImportNetlog/Properties/AssemblyInfo.cs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
[assembly: AssemblyTitle("FiddlerImportNetlog")]
55
[assembly: AssemblyDescription("Import Chromium NetLog events to Fiddler")]
6-
[assembly: AssemblyCopyright("Copyright ©2021 Eric Lawrence")]
6+
[assembly: AssemblyCopyright("Copyright ©2023 Eric Lawrence")]
77
[assembly: System.Resources.NeutralResourcesLanguage("en-US")]
88
[assembly: ComVisible(false)]
9-
[assembly: AssemblyVersion("1.3.4.1")] // ALWAYS UPDATE THE VERSION in the [ProfferFormat] attribute in FiddlerInterface.cs to match!
9+
[assembly: AssemblyVersion("1.3.4.2")] // ALWAYS UPDATE THE VERSION in the [ProfferFormat] attribute in FiddlerInterface.cs to match!
1010
[assembly: Fiddler.RequiredVersion("4.6.0.0")]
1111

1212

@@ -20,6 +20,17 @@ HTTP_STREAM_JOB has a binding between the request and the socket. Hook them up s
2020
--> source_dependency = 1701 (URL_REQUEST)
2121
*/
2222

23+
// v1.3.4.2
24+
// When renaming Transfer-Encoding/Chunk-Encoding headers, set Content-Length to enhance AutoResponder playback
25+
// Update copyright to 2023
26+
27+
// v1.3.4.1
28+
// Fix parsing of TLS/1.3 sigscheme list
29+
30+
// v1.3.4.0
31+
// Parse certificaterequest message properly on TLS/1.3 connections
32+
// Add smartscreen to net annotations
33+
2334
// v1.3.3.0
2435
// Add ClientHello and ServerHello to SecureSocket list
2536

installer/Addon.ver

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.3.0
1+
1.3.4.2

installer/FiddlerImportNetLog.nsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ VIProductVersion "${VER_ADDON}"
1616
VIAddVersionKey "FileVersion" "${VER_ADDON}"
1717
VIAddVersionKey "ProductName" "Fiddler NetLog Importer"
1818
VIAddVersionKey "Comments" "https://textslashplain.com/"
19-
VIAddVersionKey "LegalCopyright" "©2019 Eric Lawrence"
19+
VIAddVersionKey "LegalCopyright" "©2023 Eric Lawrence"
2020
VIAddVersionKey "CompanyName" "Eric Lawrence"
2121
VIAddVersionKey "FileDescription" "Installer for Fiddler Fiddler NetLog Importer"
2222

0 commit comments

Comments
 (0)