From e078b93bd34e3cf5ca791a4b187874d991d11434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Kondratiuk?= Date: Wed, 30 Oct 2024 14:55:37 -0300 Subject: [PATCH] Fix PostData type in protocol --- lib/PuppeteerSharp/Cdp/CdpHttpRequest.cs | 2 +- lib/PuppeteerSharp/Cdp/Messaging/Request.cs | 2 +- 2 files changed, 2 insertions(+), 2 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; } = [];