Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

Commit 7065758

Browse files
committed
Use https for play.rust-lang.org
1 parent 2dedf55 commit 7065758

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_includes/editor.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
});
8383

8484
// console.log("Sending", data);
85-
req.open('POST', "http://play.rust-lang.org/evaluate.json", true);
85+
req.open('POST', "https://play.rust-lang.org/evaluate.json", true);
8686
req.onload = function(e) {
8787
if (req.readyState === 4 && req.status === 200) {
8888
var result = JSON.parse(req.response).result;
@@ -215,7 +215,7 @@
215215

216216
// Display an output message and a link to the Rust playground
217217
function displayOutput(message, program) {
218-
var programUrl = "http://play.rust-lang.org/?code=" +
218+
var programUrl = "https://play.rust-lang.org/?code=" +
219219
encodeURIComponent(program) + "&run=1";
220220
playLink.href = programUrl;
221221

0 commit comments

Comments
 (0)