aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorLibravatar Rutger Broekhoff2023-12-29 23:41:25 +0100
committerLibravatar Rutger Broekhoff2023-12-29 23:41:25 +0100
commit15184289c033f204635b6aa57708cdf6781b98a4 (patch)
tree0c20ba92bfd6ac34e42a7637d4c88587c010d021 /cmd
parentfb36a7eb5c3b12f110123e93c29bf9dcca305acf (diff)
downloadgitolfs3-15184289c033f204635b6aa57708cdf6781b98a4.tar.gz
gitolfs3-15184289c033f204635b6aa57708cdf6781b98a4.zip
Log reqPath 2x more
Diffstat (limited to 'cmd')
-rw-r--r--cmd/git-lfs-server/main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/git-lfs-server/main.go b/cmd/git-lfs-server/main.go
index 19a0747..2b75b3d 100644
--- a/cmd/git-lfs-server/main.go
+++ b/cmd/git-lfs-server/main.go
@@ -207,7 +207,9 @@ func (h *handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
207 if reqPath == "" { 207 if reqPath == "" {
208 reqPath = r.URL.Path 208 reqPath = r.URL.Path
209 } 209 }
210 log("reqPath: %s", reqPath)
210 reqPath = strings.TrimPrefix("/", path.Clean(reqPath)) 211 reqPath = strings.TrimPrefix("/", path.Clean(reqPath))
212 log("Cleaned reqPath: %s", reqPath)
211 submatches := re.FindStringSubmatch(reqPath) 213 submatches := re.FindStringSubmatch(reqPath)
212 if len(submatches) != 2 { 214 if len(submatches) != 2 {
213 log("Got path: %s, did not match regex", reqPath) 215 log("Got path: %s, did not match regex", reqPath)