Skip to content

Commit 57f2419

Browse files
authored
Merge pull request dlang#2933 from Geod24/fix-https
Fix 21292: Link directly to https s3 downloads
2 parents c972654 + 9ad4361 commit 57f2419

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

download.dd

+3-3
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,9 @@ Macros:
238238
SBTN=$(SPANC sig_btn,$(BTN $1,$+)<br>$(BTN $1.sig,sig))
239239
BTN=<a href="$1" class="btn">$+</a>
240240
H3I=<h3 class="download">$0</h3>
241-
DLSITE=http://downloads.dlang.org/releases/2.x/$(DMDV2)/$0
242-
B_DLSITE=http://downloads.dlang.org/pre-releases/2.x/$(B_DMDV2)/$0
243-
N_DLSITE=http://downloads.dlang.org/nightlies/dmd-master/$0
241+
DLSITE=https://s3.us-west-2.amazonaws.com/downloads.dlang.org/releases/2.x/$(DMDV2)/$0
242+
B_DLSITE=https://s3.us-west-2.amazonaws.com/downloads.dlang.org/pre-releases/2.x/$(B_DMDV2)/$0
243+
N_DLSITE=https://s3.us-west-2.amazonaws.com/downloads.dlang.org/dmd-master/2.x/$0
244244
DOWNLOAD =
245245
$(DIV,
246246
$(DIVC download_image, $2)

js/platform-downloads.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
var html = '';
3131
for (var i = 0; i < files.length; ++i) {
3232
var f = files[i];
33-
var url = 'http://downloads.dlang.org/releases/2.x/' + latest + '/' + f.name + f.suffix;
33+
var url = 'https://s3.us-west-2.amazonaws.com/downloads.dlang.org/releases/2.x/' + latest + '/' + f.name + f.suffix;
3434
html += '<a href="' + url + '" class="btn action">Download ' + f.text + '</a>';
3535
}
3636
if (files.length > 1) {

0 commit comments

Comments
 (0)