kopia lustrzana https://gitlab.com/rysiekpl/libresilient
alt-fetch: comment fix
rodzic
9ddc4adf9e
commit
c4b688c34f
|
@ -64,8 +64,9 @@
|
||||||
*/
|
*/
|
||||||
let fetchContentFromAlternativeEndpoints = (url, init={}) => {
|
let fetchContentFromAlternativeEndpoints = (url, init={}) => {
|
||||||
|
|
||||||
// we're going to try a random endpoint and building an URL of the form:
|
// remove the https://original.domain/ bit to get the relative path
|
||||||
// https://<endpoint_address>/<pubkey>/<rest_of_URL>
|
// TODO: this assumes that URLs we handle are always relative to the root
|
||||||
|
// TODO: of the original domain, this needs to be documented
|
||||||
var path = url.replace(/https?:\/\/[^/]+\//, '')
|
var path = url.replace(/https?:\/\/[^/]+\//, '')
|
||||||
|
|
||||||
// we really want to make fetch happen, Regina!
|
// we really want to make fetch happen, Regina!
|
||||||
|
|
Ładowanie…
Reference in New Issue