Skip to content

Commit 1b7ed68

Browse files
authored
Fix typos in the documentation (#1230)
1 parent c506411 commit 1b7ed68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/client.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ that is configured with the desired TLS/SSL options.
158158
The following example disables server certificate verification, which can be
159159
useful when connecting to a server that uses a self-signed certificate::
160160

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

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

193-
http_session = request.Session()
193+
http_session = requests.Session()
194194
http_session.cert = ('/path/to/client/cert.pem', '/path/to/client/key.pem')
195195
sio = socketio.Client(http_session=http_session)
196196
sio.connect('https://example.com')

0 commit comments

Comments
 (0)