Skip to content

Commit

Permalink
fix: Fix double slash at the end of a hostname
Browse files Browse the repository at this point in the history
Fixes #275
  • Loading branch information
vaerh committed Oct 8, 2023
1 parent 0ac1730 commit d33aa79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions routeros/mikrotik_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func NewClient(ctx context.Context, d *schema.ResourceData) (interface{}, diag.D
},
}
}
routerUrl.Path = strings.TrimSuffix(routerUrl.Path, "/")

var useTLS = true
var transport = TransportREST
Expand Down

0 comments on commit d33aa79

Please sign in to comment.