philippkueng / node-neo4j

Neo4j REST API wrapper for Node.js
MIT License
211 stars 44 forks source link

allow Neo4j URLs with trailing forward slash #55

Closed dvic closed 9 years ago

dvic commented 9 years ago

If an url like http://localhost:7474/ is used (note the trailing forward slash), then you get null back on a cypher query (and probably others) because the url then contains //. This is a quick fix to resolve that issue.

Not sure if the returning of null on a 404 is appropriate, maybe that should be fixed as well in the future.

philippkueng commented 9 years ago

Thank you @damirv for the fix.