Skip to content

Commit

Permalink
sec: update versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ovsds committed Oct 15, 2024
1 parent ba7673f commit 00c3bcb
Show file tree
Hide file tree
Showing 4 changed files with 181 additions and 162 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def home():

client = app.test_client()
for c_name, c_val in request_cookies.items():
client.set_cookie("localhost", c_name, c_val)
client.set_cookie(server_name="localhost", key=c_name, value=c_val)

resp = client.get(
request_path,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ async def run(self) -> TaskResult:
if self._ctx.secure_reader_settings.cafile is not None:
ssl_context = ssl.SSLContext(protocol=ssl.PROTOCOL_TLS)
ssl_context.load_verify_locations(cafile=self._ctx.secure_reader_settings.cafile)
conn = aiohttp.TCPConnector(ssl=ssl_context)
# TODO: after migration to aiohttp 3.9.4+ use True as default value for ssl_context
if ssl_context is not None:
conn = aiohttp.TCPConnector(ssl=ssl_context)
else:
conn = aiohttp.TCPConnector()
else:
socket_path = self._ctx.secure_reader_settings.socket
secure_reader_endpoint = f"http+unix://{urllib.parse.quote_plus(socket_path)}"
Expand Down
Loading

0 comments on commit 00c3bcb

Please sign in to comment.