Skip to content

Commit

Permalink
Fix now-too-strict scheme check in URL parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciek Sakrejda committed Apr 14, 2015
1 parent 4611ad6 commit e51fec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion url.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func ParseURL(url string) (string, error) {
return "", err
}

if u.Scheme != "postgres" {
if u.Scheme != "postgres" && u.Scheme != "postgresql" {
return "", fmt.Errorf("invalid connection protocol: %s", u.Scheme)
}

Expand Down

0 comments on commit e51fec1

Please sign in to comment.