Skip to content

Commit

Permalink
Request application/sparql-results+json when plugin enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
darashi committed Mar 7, 2024
1 parent b0cbde5 commit c041a3c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,10 @@ const fs = _fs.promises;
const job = new Job({
backend: config.backend,
rawQuery: query,
accept: config.enableQuerySplitting
? "application/sparql-results+json"
: req.headers.accept,
accept:
config.enableQuerySplitting || plugins
? "application/sparql-results+json"
: req.headers.accept,
timeout: config.jobTimeout,
ip: req.ip,
enableQuerySplitting: config.enableQuerySplitting,
Expand Down

0 comments on commit c041a3c

Please sign in to comment.