Mercurial > code > home > repos > homeauto
changeset 1507:e5c0d387c248
fix text/plain output
Ignore-this: 484512f1c81139ef4788680e2ccef973
darcs-hash:d5356b3ee844ece15e1b1ea30736d909e5c54123
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Mon, 03 Feb 2020 01:10:35 -0800 |
parents | fb62c17633df |
children | 7e90dfedb377 |
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')