summaryrefslogtreecommitdiff
path: root/src-py
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2014-10-21 19:58:19 +0200
committerLV-426 <lv-426@taproot.org.il>2014-10-21 19:58:19 +0200
commitd0278d6627d5b1d50ac0697307a3259f469698f8 (patch)
treea7cab14036071d726488cf11943043072c70504d /src-py
parenta48c2f33fe91cfb2645013b0174e7ce0e94a04b9 (diff)
enable neo4j JSON streaming by default
Diffstat (limited to 'src-py')
-rw-r--r--src-py/neo4j_util.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src-py/neo4j_util.py b/src-py/neo4j_util.py
index 5b7cfee7..642e094a 100644
--- a/src-py/neo4j_util.py
+++ b/src-py/neo4j_util.py
@@ -75,6 +75,8 @@ def post(url, data):
req.add_header('Accept', 'application/json; charset=UTF-8')
req.add_header('Content-Type', 'application/json')
+ req.add_header('X-Stream', 'true') # enable neo4j JSON streaming
+
try:
ret = urllib2.urlopen(req, post_data_json)
except urllib2.HTTPError as e: