Skip to content

Commit eeabf99

Browse files
authored
Merge pull request #6 from proxymesh/fix/proxy-integration-ci-http-error
2 parents b283d35 + a30e297 commit eeabf99

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/proxy_integration_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Set up Python
2424
uses: actions/setup-python@v5
2525
with:
26-
python-version: "3.x"
26+
python-version: "3.12"
2727

2828
- name: Install package and dependencies
2929
run: |

test_proxy_headers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ class ProxyHeaderTestSpider(scrapy.Spider):
3636
"DOWNLOAD_HANDLERS": {
3737
"https": "scrapy_proxy_headers.HTTP11ProxyDownloadHandler"
3838
},
39+
# Allow non-2xx so parse() runs: we only assert proxy tunnel headers (e.g.
40+
# X-ProxyMesh-IP), and the test URL may return 403/429 from CI egress.
41+
"HTTPERROR_ALLOW_ALL": True,
3942
"LOG_LEVEL": "WARNING",
4043
"REQUEST_FINGERPRINTER_IMPLEMENTATION": "2.7",
4144
}

0 commit comments

Comments
 (0)