Skip to content

Commit e9503b0

Browse files
committed
Fix SSL verification
This fixes UrlRequest creating a context even for http connection.
1 parent 6003182 commit e9503b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kivy/network/urlrequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def _fetch_url(http://github.com/self,%20url,%20body,%20headers,%20q):
272272
ctx.verify_mode = ssl.CERT_REQUIRED
273273
args['context'] = ctx
274274

275-
if not verify:
275+
if not verify and parse.scheme == 'https':
276276
ctx = ssl.create_default_context()
277277
ctx.check_hostname = False
278278
ctx.verify_mode = ssl.CERT_NONE

0 commit comments

Comments
 (0)