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