~emersion/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH kimchi] fix site configs with path in uri

Details
Message ID
<20201202005749.78459-1-slowjo@halmen.xyz>
DKIM signature
missing
Download raw message
Patch: +1 -1
---
This actually makes site configs such as the following work

site foo.example.org/foo {
  file_server /path/to/index/html/
}

 directives.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/directives.go b/directives.go
index 7c29464..952b474 100644
--- a/directives.go
+++ b/directives.go
@@ -115,7 +115,7 @@ func parseSite(srv *Server, dir *scfg.Directive) error {
			}
		}

		ln.Mux.Handle(pattern, handler)
		ln.Mux.Handle(pattern, http.StripPrefix(path, handler))
	}
	return nil
}
-- 
2.29.2
Reply to thread Export thread (mbox)