Skip to content

Commit

Permalink
Fix PostData type in protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok committed Oct 30, 2024
1 parent b6c5574 commit e078b93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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

0 comments on commit e078b93

Please sign in to comment.