Skip to content
Snippets Groups Projects

Stfaseid http refactor

Merged Ghost User requested to merge stfaseid_http_refactor into develop
1 file
+ 6
1
Compare changes
  • Side-by-side
  • Inline
+ 6
1
@@ -2,6 +2,7 @@ package server
import (
"context"
"strings"
"time"
ppb "code.fbi.h-da.de/danet/api/go/gosdn/pnd"
@@ -259,7 +260,11 @@ func (p pndServer) GetPath(ctx context.Context, request *ppb.GetPathRequest) (*p
log.Error(err)
return nil, status.Errorf(codes.Aborted, "%v", err)
}
_, err = pnd.Request(duid, request.Path)
// In case we get the path from grpc-gateway we have to replace
path := strings.ReplaceAll(request.Path, "||", "/")
_, err = pnd.Request(duid, path)
if err != nil {
log.Error(err)
return nil, status.Errorf(codes.Aborted, "%v", err)
Loading