aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/HttpServer.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2021-08-20 15:08:35 +0300
committerRblSb <msrblsb@gmail.com>2021-08-20 15:08:35 +0300
commit34f50a628249cccfd746d05a3ff1bfaaba0efd0b (patch)
tree4e5c19ab69d1d905c763e46ee77feaa284d91447 /src/server/HttpServer.hx
parentf2d28c726ba46f03716ed37667d0e94c60ad3459 (diff)
Fix subs for linux chrome
With trackEl.srclang = "en"
Diffstat (limited to 'src/server/HttpServer.hx')
-rw-r--r--src/server/HttpServer.hx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/HttpServer.hx b/src/server/HttpServer.hx
index 1198ca1..0edf4e3 100644
--- a/src/server/HttpServer.hx
+++ b/src/server/HttpServer.hx
@@ -74,7 +74,7 @@ class HttpServer {
}
if (url.startsWith("/proxy")) {
- if (!proxyUrl(req, res)) res.end('Cannot proxy ${req.url}');
+ if (!proxyUrl(req, res)) res.end('Proxy error: ${req.url}');
return;
}
@@ -167,7 +167,7 @@ class HttpServer {
if (url == null) return false;
final proxy2 = proxyRequest(url, req, res, proxyReq -> false);
if (proxy2 == null) {
- res.end('Proxy error for redirected $url');
+ res.end('Proxy error: multiple redirects for url $url');
return true;
}
req.pipe(proxy2, {end: true});
@@ -200,7 +200,7 @@ class HttpServer {
proxyReq.pipe(res, {end: true});
});
proxy.on("error", err -> {
- res.end('Proxy error for ${url.href}');
+ res.end('Proxy error: ${url.href}');
});
return proxy;
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage