Martin Panter added the comment: Patch v2 also adds a new attribute to context objects. With this I can work around my Google server bug:
context = ssl.create_default_context(ssl.Purpose.SERVER_AUTH) context.suppress_ragged_eofs = True handler = urllib.request.HTTPSHandler(context=context) urlopen = urllib.request.build_opener(handler).open urlopen(Request(url="https://accounts.google.com/o/oauth2/token", ...)) ---------- Added file: http://bugs.python.org/file45106/ragged-eofs.v2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27815> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com