Start using HTTPS to access all archived files
This commit is contained in:
parent
46545b3c73
commit
73bcb543fd
185 changed files with 17533 additions and 17518 deletions
|
|
@ -120,7 +120,10 @@ class Net {
|
|||
if (!fDebug) {
|
||||
if (sURL.match(/^[^:?]*archive\//)) {
|
||||
if (sURL.charAt(0) != '/') sURL = path.join(req.path, sURL);
|
||||
sURL = "http://archive.pcjs.org" + sURL.replace("/archive/", "/");
|
||||
/*
|
||||
* NOTE: "http://archive.pcjs.org" is now "https://s3-us-west-2.amazonaws.com/archive.pcjs.org"
|
||||
*/
|
||||
sURL = "https://s3-us-west-2.amazonaws.com/archive.pcjs.org" + sURL.replace("/archive/", "/");
|
||||
}
|
||||
}
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -189,9 +189,11 @@ class Web {
|
|||
|
||||
if (DEBUG) {
|
||||
/*
|
||||
* The larger resources we put on archive.pcjs.org should also be available locally...
|
||||
* The larger resources we put on archive.pcjs.org should also be available locally.
|
||||
*
|
||||
* NOTE: "http://archive.pcjs.org" is now "https://s3-us-west-2.amazonaws.com/archive.pcjs.org"
|
||||
*/
|
||||
sURL = sURL.replace(/^http:\/\/archive.pcjs.org(\/.*)\/([^\/]*)$/, "$1/archive/$2");
|
||||
sURL = sURL.replace(/^(http:\/\/archive\.pcjs\.org|https:\/\/s3-us-west-2\.amazonaws\.com\/archive\.pcjs\.org)(\/.*)\/([^\/]*)$/, "$1/archive/$2");
|
||||
}
|
||||
|
||||
if (NODE) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue