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

Fix a typo in the documentation #1230

Merged
merged 1 commit into from
Aug 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ that is configured with the desired TLS/SSL options.
The following example disables server certificate verification, which can be
useful when connecting to a server that uses a self-signed certificate::

http_session = request.Session()
http_session = requests.Session()
http_session.verify = False
sio = socketio.Client(http_session=http_session)
sio.connect('https://example.com')
Expand All @@ -173,7 +173,7 @@ And when using ``asyncio``::
Instead of disabling certificate verification, you can provide a custom
certificate authority bundle to verify the certificate against::

http_session = request.Session()
http_session = requests.Session()
http_session.verify = '/path/to/ca.pem'
sio = socketio.Client(http_session=http_session)
sio.connect('https://example.com')
Expand All @@ -190,7 +190,7 @@ And for ``asyncio``::
Below you can see how to use a client certificate to authenticate against the
server::

http_session = request.Session()
http_session = requests.Session()
http_session.cert = ('/path/to/client/cert.pem', '/path/to/client/key.pem')
sio = socketio.Client(http_session=http_session)
sio.connect('https://example.com')
Expand Down