Skip to content

Commit

Permalink
Fix PostData type in protocol (#2810)
Browse files Browse the repository at this point in the history
* Fix PostData type in protocol

* bump version
  • Loading branch information
kblok authored Oct 31, 2024
1 parent a4525c1 commit 3e73a93
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/PuppeteerSharp/Cdp/CdpHttpRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion lib/PuppeteerSharp/Cdp/Messaging/Request.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ internal class Request
{
public HttpMethod Method { get; set; }

public object PostData { get; set; }
public string PostData { get; set; }

public Dictionary<string, string> Headers { get; set; } = [];

Expand Down
8 changes: 4 additions & 4 deletions lib/PuppeteerSharp/PuppeteerSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
<Description>Headless Browser .NET API</Description>
<PackageId>PuppeteerSharp</PackageId>
<PackageReleaseNotes></PackageReleaseNotes>
<PackageVersion>20.0.3</PackageVersion>
<ReleaseVersion>20.0.3</ReleaseVersion>
<AssemblyVersion>20.0.3</AssemblyVersion>
<FileVersion>20.0.3</FileVersion>
<PackageVersion>20.0.4</PackageVersion>
<ReleaseVersion>20.0.4</ReleaseVersion>
<AssemblyVersion>20.0.4</AssemblyVersion>
<FileVersion>20.0.4</FileVersion>
<SynchReleaseVersion>false</SynchReleaseVersion>
<StyleCopTreatErrorsAsWarnings>false</StyleCopTreatErrorsAsWarnings>
<DebugType>embedded</DebugType>
Expand Down

0 comments on commit 3e73a93

Please sign in to comment.