Skip to content
Snippets Groups Projects
Commit 46a6b2c8 authored by ko_oler's avatar ko_oler
Browse files

правки по ПР

parent 7e09f8e9
No related branches found
No related tags found
No related merge requests found
...@@ -28,10 +28,7 @@ func NewURL(action string) (*URL, error) { ...@@ -28,10 +28,7 @@ func NewURL(action string) (*URL, error) {
return nil, err return nil, err
} }
if actionURL.URL.Scheme == "grpc" { if actionURL.URL.Scheme == "grpc" {
path := actionURL.Path path := strings.TrimLeft(actionURL.Path, "/")
if strings.HasPrefix(actionURL.Path, "/") {
path = actionURL.Path[1:]
}
splitPath := strings.Split(path, "/") splitPath := strings.Split(path, "/")
if len(splitPath) < 2 { if len(splitPath) < 2 {
return nil, errors.Errorf("incorrect action URL, no action id: '%s'", action) return nil, errors.Errorf("incorrect action URL, no action id: '%s'", action)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment