Mercurial > code > home > repos > homeauto
changeset 706:b41247c7b080
fix text/plain output
Ignore-this: 484512f1c81139ef4788680e2ccef973
author | drewp@bigasterisk.com |
---|---|
date | Mon, 03 Feb 2020 01:10:35 -0800 |
parents | 394c57fcb0bb |
children | 41af3ebccdf9 |
files | lib/patchablegraph/patchablegraph.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/patchablegraph/patchablegraph.py Mon Feb 03 00:51:26 2020 -0800 +++ b/lib/patchablegraph/patchablegraph.py Mon Feb 03 01:10:35 2020 -0800 @@ -47,9 +47,9 @@ if acceptHeader.startswith('text/html'): # browser; should arrange to pick live view req.set_header('Content-type', 'text/plain') - lines = graph.serialize(format='nquads') + lines = graph.serialize(None, format='nquads').splitlines() lines.sort() - req.write(''.join(lines)) + req.write(b'\n'.join(lines)) return req.set_header('Content-type', 'application/x-trig')