Skip to content

Fix request method override #144

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

Merged
merged 3 commits into from
Dec 4, 2022
Merged

Fix request method override #144

merged 3 commits into from
Dec 4, 2022

Conversation

elacuesta
Copy link
Member

@elacuesta elacuesta commented Dec 2, 2022

Closes #100, closes #119, closes #143

I discovered the method for some navigation requests was incorrectly being overridden from POST to GET. This piece of code is there only because with Page.goto one can only trigger GET requests directly, however the URLs for the Playwright and Scrapy requests were not the same so the requests did not match each other.

@elacuesta elacuesta added the bug Something isn't working label Dec 2, 2022
@codecov
Copy link

codecov bot commented Dec 2, 2022

Codecov Report

Merging #144 (987d60b) into main (d95ff08) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main      #144   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          328       334    +6     
=========================================
+ Hits           328       334    +6     
Impacted Files Coverage Δ
scrapy_playwright/handler.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@elacuesta elacuesta changed the title Fix method override Fix request method override Dec 4, 2022
@elacuesta elacuesta merged commit bd2ae24 into main Dec 4, 2022
@elacuesta elacuesta deleted the fix-method-override branch December 4, 2022 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant