aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/HttpServer.hx
diff options
context:
space:
mode:
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