Skip to content

Commit

Permalink
fix(kvd): path error
Browse files Browse the repository at this point in the history
  • Loading branch information
xtlsoft committed Aug 31, 2020
1 parent 4338cca commit 5beab27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unikvd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ func handle(rw http.ResponseWriter, r *http.Request) {
rw.Header().Add("Server", "UniKVd")
uri := strings.Split(r.URL.RequestURI(), "?")[0]
sp := strings.Split(strings.Trim(uri, "/"), "/")
if len(sp) != 3 {
if len(sp) != 4 {
resp404(rw)
return
}
nsName, bucketName, key := sp[0], sp[1], sp[2]
nsName, bucketName, key := sp[1], sp[2], sp[3]
if nsName == "_system" {
switch bucketName {
case "lifecycle":
Expand Down

0 comments on commit 5beab27

Please sign in to comment.