From 9d39127fd3e0a513027275736659c89f62b36311 Mon Sep 17 00:00:00 2001 From: Christian Holzberger Date: Sun, 29 Sep 2019 16:00:39 +0200 Subject: [PATCH] bugfix: do not check for how the server is called in a request but for the ip of the client. sort-of fixes: #48 --- src/libexec/git-core/git-webui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libexec/git-core/git-webui b/src/libexec/git-core/git-webui index 995318a..6623dbf 100755 --- a/src/libexec/git-core/git-webui +++ b/src/libexec/git-core/git-webui @@ -142,7 +142,7 @@ class WebUiRequestHandler(SimpleHTTPRequestHandler): def is_view_only(self): - host = self.headers.get("Host", "").split(":")[0] + host = self.client_address[0] return host not in allowed_hosts