Skip to content

Commit

Permalink
Merge pull request #153 from nimishzynga/changes
Browse files Browse the repository at this point in the history
fixed URL prefix checking logic
  • Loading branch information
Steve Yen committed Jul 14, 2015
2 parents 46800d0 + 3933fb1 commit 81256c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cbft/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func MainStart(cfg cbgt.Cfg, uuid string, tags []string, container string,
if server != "." {
_, err := couchbase.Connect(server)
if err != nil {
if !strings.HasPrefix(server, "http://") ||
if !strings.HasPrefix(server, "http://") &&
!strings.HasPrefix(server, "https://") {
return nil, fmt.Errorf("error: not a URL, server: %q\n"+
" Please check that your -server parameter"+
Expand Down

0 comments on commit 81256c1

Please sign in to comment.