Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cdp dependency #1447

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Update cdp dependency #1447

wants to merge 2 commits into from

Conversation

ankur22
Copy link
Collaborator

@ankur22 ankur22 commented Sep 27, 2024

What?

Update cdp dependency.

Why?

We're working with a 2 year old CDP dependency library. Updating to the latest one to ensure that we don't miss any new fixes, features etc.

Checklist

  • I have performed a self-review of my code
  • I have added tests for my changes
  • I have commented on my code, particularly in hard-to-understand areas

Related PR(s)/Issue(s)

Updates: #1430

@ankur22 ankur22 marked this pull request as draft September 27, 2024 12:21
@@ -104,13 +105,30 @@ func NewRequest(ctx context.Context, rp NewRequestParams) (*Request, error) {
isNavigationRequest := string(ev.RequestID) == string(ev.LoaderID) &&
ev.Type == network.ResourceTypeDocument

var pd string
for _, i := range ev.Request.PostDataEntries {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the moment this is the most obvious breaking change.

I'm not sure why the post data is broken into a slice like this. It would be good to get to the bottom of why it's done this way so that we know how to handle the entries.

pd += string(decodedBytes)
}

fmt.Println(pd)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've left this is to easily debug the response body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant