diff --git a/lib/PuppeteerSharp/Cdp/CdpHttpRequest.cs b/lib/PuppeteerSharp/Cdp/CdpHttpRequest.cs index ca051f5ae..df2f3f1ce 100644 --- a/lib/PuppeteerSharp/Cdp/CdpHttpRequest.cs +++ b/lib/PuppeteerSharp/Cdp/CdpHttpRequest.cs @@ -42,7 +42,7 @@ internal CdpHttpRequest( Url = data.Request.Url; ResourceType = data.Type ?? ResourceType.Other; Method = data.Request.Method; - PostData = data.Request.PostData?.ToString(); + PostData = data.Request.PostData; HasPostData = data.Request.HasPostData ?? false; Frame = frame; diff --git a/lib/PuppeteerSharp/Cdp/Messaging/Request.cs b/lib/PuppeteerSharp/Cdp/Messaging/Request.cs index fa786be3c..c31daaef8 100644 --- a/lib/PuppeteerSharp/Cdp/Messaging/Request.cs +++ b/lib/PuppeteerSharp/Cdp/Messaging/Request.cs @@ -29,7 +29,7 @@ internal class Request { public HttpMethod Method { get; set; } - public object PostData { get; set; } + public string PostData { get; set; } public Dictionary Headers { get; set; } = []; diff --git a/lib/PuppeteerSharp/PuppeteerSharp.csproj b/lib/PuppeteerSharp/PuppeteerSharp.csproj index 9f57ce6cc..26a43bd1a 100644 --- a/lib/PuppeteerSharp/PuppeteerSharp.csproj +++ b/lib/PuppeteerSharp/PuppeteerSharp.csproj @@ -12,10 +12,10 @@ Headless Browser .NET API PuppeteerSharp - 20.0.3 - 20.0.3 - 20.0.3 - 20.0.3 + 20.0.4 + 20.0.4 + 20.0.4 + 20.0.4 false false embedded