diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/wtv-proxy/proxy.js b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-proxy/proxy.js index b06bb8eb..ca1cfb4b 100644 --- a/zefie_wtvp_minisrv/includes/ServiceVault/wtv-proxy/proxy.js +++ b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-proxy/proxy.js @@ -2,68 +2,95 @@ minisrv_service_file = true; request_is_async = true; proxyUrl = minisrv_config.services[service_name].wrp_url; -if (!proxyUrl.endsWith('/')) { - proxyUrl += '/'; -} - -if (!request_headers.query.url) { +if (!proxyUrl) { headers = `200 OK -Content-Type: text/html`; +Content-Type: text/html +wtv-expire-all: wtv-proxy:/`; data = ` -
+Welcome to the Web Rendering Proxy.
Please provide a valid URL to render.