alt-fetch: comment fix

merge-requests/12/merge
Michał 'rysiek' Woźniak 2022-03-09 13:31:51 +00:00
rodzic 9ddc4adf9e
commit c4b688c34f
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -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!