Repository navigation
Add option to set own mirror. - #208
Conversation
|
Travis has either hickups or does not like git git --amend. I resquashed everything and no it is green. |
|
This patch assumes that the mirror can offer a top-level Another side-effect of using a full URL prefix: You can keep backwards-compatibility by checking |
do not assume that the mirror mirrors the full directory structure of nodejs.org, actually, some mirros just have the part of `https://nodejs.org/download/release/` mirrored. for instance, https://npm.taobao.org/mirrors/node, and do not assume that the mirror always put the nodejs mirror in its `download/` directory. in this change, a URL is accepted as well as a domain name. if a mirror does not have "://" in it is specified, the default "https://<domain_name>/download/releases" URL is used. this change addresses the comment of ekalinin#208 (comment) Signed-off-by: Kefu Chai <[email protected]>
do not assume that the mirror mirrors the full directory structure of nodejs.org, actually, some mirros just have the part of `https://nodejs.org/download/release/` mirrored. for instance, https://npm.taobao.org/mirrors/node, and do not assume that the mirror always put the nodejs mirror in its `download/` directory. in this change, a URL is accepted as well as a domain name. if a mirror does not have "://" in it is specified, the default "https://<domain_name>/download/releases" URL is used. this change addresses the comment of ekalinin#208 (comment) Signed-off-by: Kefu Chai <[email protected]>
do not assume that the mirror mirrors the full directory structure of nodejs.org, actually, some mirros just have the part of `https://nodejs.org/download/release/` mirrored. for instance, https://npm.taobao.org/mirrors/node, and do not assume that the mirror always put the nodejs mirror in its `download/` directory. in this change, a URL is accepted as well as a domain name. if a mirror does not have "://" in it is specified, the default "https://<domain_name>/download/releases" URL is used. this change addresses the comment of ekalinin#208 (comment) also, ignore E127 for multi-line `with` statement, see discussion at PyCQA/pycodestyle#316, which is related to E126, but it also applies this case. Signed-off-by: Kefu Chai <[email protected]>
We provide an internal mirror of nodejs.org for reachability and autiting. Thats the reason i added an option to set the servername/basepath as an mirror option.