Fix timeout in grab; remove pprof

This commit is contained in:
Mukhtar Akere
2025-05-20 18:47:05 +01:00
parent 5aa1c67544
commit 57ccd67c83
5 changed files with 33 additions and 38 deletions

View File

@@ -200,8 +200,15 @@
window.urlBase = "{{.URLBase}}";
function joinURL(...segments) {
return segments.join('/').replace(/[/]+/g, '/').replace(/^(.+):\//, '$1://').replace(/^file:/, 'file:/').replace(/\/(?=[?&#])/g, '').replace(/\?/g, '&');
function joinURL(base, path) {
if (!base.endsWith('/')) {
base += '/';
}
if (path.startsWith('/')) {
path = path.substring(1);
}
return base + path;
}
function fetcher(endpoint, options = {}) {