From 1228f992d09024f0ed7dfd60127b1e72e478bc07 Mon Sep 17 00:00:00 2001 From: amaitland Date: Mon, 30 Jan 2017 09:33:05 +1000 Subject: [PATCH] FindReplaceResponseFilter - Remove debugging code that was outputting the count as part of the response AppendResponseFilter - Improve comment --- CefSharp.Example/Filters/AppendResponseFilter.cs | 2 +- CefSharp.Example/Filters/FindReplaceResponseFilter.cs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CefSharp.Example/Filters/AppendResponseFilter.cs b/CefSharp.Example/Filters/AppendResponseFilter.cs index 409beec99..bd32d2f4f 100644 --- a/CefSharp.Example/Filters/AppendResponseFilter.cs +++ b/CefSharp.Example/Filters/AppendResponseFilter.cs @@ -49,7 +49,7 @@ namespace CefSharp.Example.Filters dataIn.CopyTo(dataOut); } - // If we have overflow data then write it. + // If we have overflow data and remaining space in the buffer then write the overflow. if (overflow.Count > 0) { // Number of bytes remaining in the output buffer. diff --git a/CefSharp.Example/Filters/FindReplaceResponseFilter.cs b/CefSharp.Example/Filters/FindReplaceResponseFilter.cs index 6f4174247..4e892f507 100644 --- a/CefSharp.Example/Filters/FindReplaceResponseFilter.cs +++ b/CefSharp.Example/Filters/FindReplaceResponseFilter.cs @@ -79,8 +79,7 @@ namespace CefSharp.Example.Filters if (findMatchOffset == findString.Length) { // Complete match of the find string. Write the replace string. - var replaceString = ++replaceCount + ". " + replacementString; - WriteString(replaceString, replaceString.Length, dataOut, ref dataOutWritten); + WriteString(replacementString, replacementString.Length, dataOut, ref dataOutWritten); // Start over looking for a match. findMatchOffset = 0;