Bug 1157299 - Use HTTPS for mach pastebin. r=gps
authorMike Hommey <mh+mozilla@glandium.org>
Fri, 24 Apr 2015 10:02:56 +0900
changeset 241032 daa7b4d7986fc9e2e3b46237bb5558755d4cd5aa
parent 241031 684d75a9a1967d01ca7ebcc9a6bf7cade37192e1
child 241033 9fc389222632a233b94f9dfe606905a12d50339e
push id59000
push usermh@glandium.org
push dateFri, 24 Apr 2015 23:37:06 +0000
treeherdermozilla-inbound@9fc389222632 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps
bugs1157299
milestone40.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1157299 - Use HTTPS for mach pastebin. r=gps Submitting to HTTP just redirects to the main page on HTTPS, without storing the paste.
tools/mach_commands.py
--- a/tools/mach_commands.py
+++ b/tools/mach_commands.py
@@ -217,17 +217,17 @@ class PastebinProvider(object):
                      help='Keep for specified duration (default: %(default)s)')
     @CommandArgument('file', nargs='?', default=None,
                      help='Specify the file to upload to pastebin.mozilla.org')
 
     def pastebin(self, language, poster, duration, file):
         import sys
         import urllib
 
-        URL = 'http://pastebin.mozilla.org/'
+        URL = 'https://pastebin.mozilla.org/'
 
         FILE_TYPES = [{'value': 'text', 'name': 'None', 'extension': 'txt'},
         {'value': 'bash', 'name': 'Bash', 'extension': 'sh'},
         {'value': 'c', 'name': 'C', 'extension': 'c'},
         {'value': 'cpp', 'name': 'C++', 'extension': 'cpp'},
         {'value': 'html4strict', 'name': 'HTML', 'extension': 'html'},
         {'value': 'javascript', 'name': 'Javascript', 'extension': 'js'},
         {'value': 'javascript', 'name': 'Javascript', 'extension': 'jsm'},