Skip to content

Commit

Permalink
Fixed case of unconfigured WOPI bridge, cf. PR #1234
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed Oct 28, 2020
1 parent 7c9a6b0 commit c74de0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/grpc/services/appprovider/appprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func (s *service) OpenFileInAppProvider(ctx context.Context, req *providerpb.Ope

// In case of applications served by the WOPI bridge, resolve the URL and go to the app
// Note that URL matching is performed via string matching, not via IP resolution: may need to fix this
if strings.Contains(appProviderURL, s.conf.WopiBrURL) {
if len(s.conf.WopiBrURL) > 0 && strings.Contains(appProviderURL, s.conf.WopiBrURL) {
httpClient := rhttp.GetHTTPClient(
rhttp.Context(ctx),
rhttp.Timeout(time.Duration(5*int64(time.Second))),
Expand Down

0 comments on commit c74de0e

Please sign in to comment.