Skip to content
This repository has been archived by the owner on Jun 28, 2018. It is now read-only.

Commit

Permalink
Register neo4j driver using a pseudo neo4js protocol scheme.
Browse files Browse the repository at this point in the history
Neo4J supports both `http` and `https` connections, however `https`
connections weren't supported previously as the `neo4j` URL scheme
currently used to identify the driver type is always substituted for
just `http`.

This PR also registers the driver under an alternate key: `neo4js` which
given the way the scheme substitution happens, should allow the driver
to correctly create an `https` connection URL. This will allow the
library to be used for cases where we don't have access to the plain
`http` endpoint.
  • Loading branch information
Sam Mulube committed May 9, 2017
1 parent 7dde434 commit 250543a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions driver/neo4j/neo4j.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,5 @@ func (driver *Driver) Version() (uint64, error) {

func init() {
driver.RegisterDriver("neo4j", &Driver{})
driver.RegisterDriver("neo4js", &Driver{})
}

0 comments on commit 250543a

Please sign in to comment.