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

Use correct HTTP method for new page endpoint #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tomassurin
Copy link

This PR fixes an incompatibility with recent chromium versions (111+)

Details

The main culprit is the API for creating pages = PUT /json/new. This library uses wrong HTTP method GET here. This got unnoticed up until now because chromium did not enforce the correct method. However, this changed recently where chromium started enforcing it and responding with an error:

Using unsafe HTTP verb GET to invoke /json/new. This action supports only PUT verb.

For context, this has been introduced by this chromium PR: https://chromium-review.googlesource.com/c/chromium/src/+/4110715

@gorghoa
Copy link

gorghoa commented Jan 18, 2024

lol, I checked the issues but not the PR, and recoded this one too 🤣 (#39)

@andrewvy , any chance to get this one merged and released?

Thanks!

aus70 added a commit to aus70/chrome-remote-interface that referenced this pull request Apr 11, 2024
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.

None yet

2 participants