Skip to content

Commit 89ef600

Browse files
authored
close json result if trivially empty. (#83)
1 parent 3d17057 commit 89ef600

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/tentris/http/SparqlEndpoint.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ namespace tentris::http {
191191
resp.append_header(restinio::http_field::content_type, "application/sparql-results+json");
192192

193193
SparqlJsonResultSAXWriter<RESULT_TYPE> json_result(vars, 1'000UL);
194+
json_result.close();
194195
resp.set_body(std::string{json_result.string_view()});
195196
resp.done();
196197
return Status::OK;

0 commit comments

Comments
 (0)