diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-10-21 19:58:19 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2014-10-21 19:58:19 +0200 |
| commit | d0278d6627d5b1d50ac0697307a3259f469698f8 (patch) | |
| tree | a7cab14036071d726488cf11943043072c70504d /src-py | |
| parent | a48c2f33fe91cfb2645013b0174e7ce0e94a04b9 (diff) | |
enable neo4j JSON streaming by default
Diffstat (limited to 'src-py')
| -rw-r--r-- | src-py/neo4j_util.py | 2 |
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: |
