Skip to content

Commit

Permalink
updated-dependencies: requests, urllib3, certifi, msal, faker
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric05 authored Jul 7, 2024
1 parent 1c5044a commit b699389
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 38 deletions.
4 changes: 2 additions & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ parsys-requests-unixsocket = "==0.3.2"
requests-aws4auth = "==1.2.3"
requests-ntlm = "==1.3.0"
restrictedpython = "==7.1"
faker = "==25.8.0"
faker = "==26.0.0"
requests-hawk = "==1.2.1"
pyyaml = "==6.0.1"
toml = "==0.10.2"
msal = "==1.28.0"
msal = "==1.29.0"

[dev-packages]
python-magic = "*"
Expand Down
62 changes: 31 additions & 31 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion dothttp/parse/request_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,9 +530,13 @@ def get_response(self):
),
)
try:
if self.httpdef.certificate:
cert = tuple(self.httpdef.certificate)
else:
cert = None
resp: Response = session.send(
request,
cert=self.httpdef.certificate,
cert=cert,
verify=not self.httpdef.allow_insecure,
proxies=self.httpdef.proxy,
# stream=True
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ parsys-requests-unixsocket==0.3.2
requests-aws4auth==1.2.3
requests_ntlm==1.3.0
RestrictedPython==7.1
Faker==25.8.0
Faker==26.0.0
requests-hawk==1.2.1
msal==1.28.0
msal==1.29.0
PyYaml==6.0.1
toml==0.10.2
requests==2.31.0
requests==2.32.3
2 changes: 1 addition & 1 deletion test/core/test_certs.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_certificate_available(self):
)
resp_200 = req_comp_success.get_response()
self.assertEqual(
400, resp_200.status_code, "with empty cert, status_code is 400"
200, resp_200.status_code, "when cert supplied, it should return 200"
)

def test_certificate_available2(self):
Expand Down

0 comments on commit b699389

Please sign in to comment.