aboutsummaryrefslogtreecommitdiff
path: root/handlers.go
diff options
context:
space:
mode:
authorGravatar Michael Eischer <michael.eischer@fau.de> 2025-02-17 21:37:02 +0100
committerGravatar GitHub <noreply@github.com> 2025-02-17 21:37:02 +0100
commit376392a89cab5f76dfd52a7e50c6468bfc6095a2 (patch)
tree3c759ac7b1a663af87fd6f196bfe8d506a927a9f /handlers.go
parent2513a698f353d757bc1a158ce01a105858b41f66 (diff)
parente9e65293457e3f837349c88d5c6f5c68a6c4674b (diff)
downloadrest-server-376392a89cab5f76dfd52a7e50c6468bfc6095a2.tar.gz
rest-server-376392a89cab5f76dfd52a7e50c6468bfc6095a2.tar.zst
rest-server-376392a89cab5f76dfd52a7e50c6468bfc6095a2.zip
Merge pull request #322 from MichaelEischer/bump-go-version
Bump minimum go version to 1.22
Diffstat (limited to 'handlers.go')
-rw-r--r--handlers.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/handlers.go b/handlers.go
index 8163ccf..1bccc60 100644
--- a/handlers.go
+++ b/handlers.go
@@ -158,7 +158,8 @@ func join(base string, names ...string) (string, error) {
// splitURLPath splits the URL path into a folderPath of the subrepo, and
// a remainder that can be passed to repo.Handler.
// Example: /foo/bar/locks/0123... will be split into:
-// ["foo", "bar"] and "/locks/0123..."
+//
+// ["foo", "bar"] and "/locks/0123..."
func splitURLPath(urlPath string, maxDepth int) (folderPath []string, remainder string) {
if !strings.HasPrefix(urlPath, "/") {
// Really should start with "/"