Skip to content

Commit

Permalink
fix pycurl
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed Feb 10, 2025
1 parent da84f6e commit 16cba26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,3 @@ jobs:
# uses: lhotari/action-upterm@v1
- name: Run pytest
run: scripts/run_cached_tests

- name: save mitmproxy cache
if: always()
uses: actions/cache/save@v4
env:
cache-name: cache-mitm
with:
path: ~/.mitmproxy
key: ${{ env.cache-name }}-${{ github.run_id }}-${{ github.run_attempt }}
2 changes: 2 additions & 0 deletions nvchecker/httpclient/tornado_httpclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ def setup_curl(curl):

if SSL_CERT_FILE:
curl.setopt_string(pycurl.CAINFO, SSL_CERT_FILE)
# some servers insist sending us compressed content
curl.setopt_string(pycurl.ACCEPT_ENCODING, "")

class TornadoSession(BaseSession):
def setup(
Expand Down

0 comments on commit 16cba26

Please sign in to comment.