Skip to content

Commit

Permalink
Fix typos in the documentation (#1230)
Browse files Browse the repository at this point in the history
  • Loading branch information
spezifanta authored Aug 30, 2023
1 parent c506411 commit 1b7ed68
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 1b7ed68

Please sign in to comment.