From 3e73a934a470930f82d4d55dd3c807ea7c02fd0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Kondratiuk?= Date: Thu, 31 Oct 2024 11:20:27 -0300 Subject: [PATCH] Fix PostData type in protocol (#2810) * Fix PostData type in protocol * bump version --- lib/PuppeteerSharp/Cdp/CdpHttpRequest.cs | 2 +- lib/PuppeteerSharp/Cdp/Messaging/Request.cs | 2 +- lib/PuppeteerSharp/PuppeteerSharp.csproj | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) 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