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)