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

Do not override headers with values from asset requests #226

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

elacuesta
Copy link
Member

Fixes #181

  • Scrapy headers were being updated for every Playwright request, they should only be updated for the Playwright request that corresponds to the original Scrapy one
  • Referer header from the Playwright request was not added to the output of scrapy_playwright.headers.use_scrapy_headers

* Scrapy headers were being updated for every Playwright request,
  they should only be updated for the Playwright request that
  corresponds to the original Scrapy one
* Referer header from the Playwright request was not added to the
  output of scrapy_playwright.headers.use_scrapy_headers
@codecov
Copy link

codecov bot commented Aug 25, 2023

Codecov Report

Merging #226 (21b4296) into main (05648c6) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main      #226   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines          390       392    +2     
=========================================
+ Hits           390       392    +2     
Files Changed Coverage Δ
scrapy_playwright/handler.py 100.00% <100.00%> (ø)
scrapy_playwright/headers.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 header processing Do not override headers with values from asset requests Aug 28, 2023
@elacuesta elacuesta merged commit a0fc5c6 into main Aug 28, 2023
19 checks passed
@elacuesta elacuesta deleted the fix-header-processing branch August 28, 2023 12:57
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.

Referer seems override by assets requests
1 participant