Skip to content

Commit

Permalink
close json result if trivially empty. (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigerl committed Mar 2, 2021
1 parent 3d17057 commit 89ef600
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/tentris/http/SparqlEndpoint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ namespace tentris::http {
resp.append_header(restinio::http_field::content_type, "application/sparql-results+json");

SparqlJsonResultSAXWriter<RESULT_TYPE> json_result(vars, 1'000UL);
json_result.close();
resp.set_body(std::string{json_result.string_view()});
resp.done();
return Status::OK;
Expand Down

0 comments on commit 89ef600

Please sign in to comment.