Skip to content

Commit

Permalink
Token verification bug fix.
Browse files Browse the repository at this point in the history
Signed-off-by: Ulf Bjorkengren <[email protected]>
  • Loading branch information
UlfBj committed Apr 12, 2024
1 parent b46ac45 commit 8ed55c2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions server/vissv2server/vissv2server.go
Original file line number Diff line number Diff line change
Expand Up @@ -706,9 +706,7 @@ func issueServiceRequest(requestMap map[string]interface{}, tDChanIndex int, sDC
return
}
paths = paths[:len(paths)-2]
if totalMatches == 1 {
paths = paths[1 : len(paths)-1] // remove hyphens
} else if totalMatches > 1 {
if totalMatches > 1 {
paths = "[" + paths + "]"
}

Expand Down Expand Up @@ -746,6 +744,9 @@ func issueServiceRequest(requestMap map[string]interface{}, tDChanIndex int, sDC
backendChan[tDChanIndex] <- utils.FinalizeMessage(errorResponseMap)
return
}
if totalMatches == 1 {
paths = paths[1 : len(paths)-1] // remove hyphens
}
requestMap["path"] = paths
if tokenHandle != "" {
requestMap["handle"] = tokenHandle
Expand Down

0 comments on commit 8ed55c2

Please sign in to comment.