@@ -158,7 +158,7 @@ that is configured with the desired TLS/SSL options.
158
158
The following example disables server certificate verification, which can be
159
159
useful when connecting to a server that uses a self-signed certificate::
160
160
161
- http_session = request .Session()
161
+ http_session = requests .Session()
162
162
http_session.verify = False
163
163
sio = socketio.Client(http_session=http_session)
164
164
sio.connect('https://example.com')
@@ -173,7 +173,7 @@ And when using ``asyncio``::
173
173
Instead of disabling certificate verification, you can provide a custom
174
174
certificate authority bundle to verify the certificate against::
175
175
176
- http_session = request .Session()
176
+ http_session = requests .Session()
177
177
http_session.verify = '/path/to/ca.pem'
178
178
sio = socketio.Client(http_session=http_session)
179
179
sio.connect('https://example.com')
@@ -190,7 +190,7 @@ And for ``asyncio``::
190
190
Below you can see how to use a client certificate to authenticate against the
191
191
server::
192
192
193
- http_session = request .Session()
193
+ http_session = requests .Session()
194
194
http_session.cert = ('/path/to/client/cert.pem', '/path/to/client/key.pem')
195
195
sio = socketio.Client(http_session=http_session)
196
196
sio.connect('https://example.com')
0 commit comments