From b0bc122821f75638b5ca5898585d81bfba96a44c 2021-07-13 10:53:35 From: Eyenpi Date: 2021-07-13 10:53:35 Subject: [PATCH] change dpaste api protocol from http to https --- diff --git a/IPython/core/magics/code.py b/IPython/core/magics/code.py index 962f70b..4d33027 100644 --- a/IPython/core/magics/code.py +++ b/IPython/core/magics/code.py @@ -290,7 +290,7 @@ class CodeMagics(Magics): ).encode("utf-8") request = Request( - "http://dpaste.com/api/v2/", + "https://dpaste.com/api/v2/", headers={"User-Agent": "IPython v{}".format(version)}, ) response = urlopen(request, post_data)