Skip to content

Commit

Permalink
Fixed quality values in generated Accept headers (closes #69).
Browse files Browse the repository at this point in the history
  • Loading branch information
artob committed Jun 13, 2016
1 parent 1d0b871 commit 7ca0fd8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/sparql/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ class ServerError < StandardError; end
RESULT_JSON,
RESULT_XML,
RESULT_BOOL,
"#{RESULT_TSV};p=0.8",
"#{RESULT_CSV};p=0.2",
'*/*;p=0.1'
"#{RESULT_TSV};q=0.8",
"#{RESULT_CSV};q=0.2",
'*/*;q=0.1'
].join(', ').freeze
GRAPH_ALL = (
RDF::Format.content_types.keys +
['*/*;p=0.1']
['*/*;q=0.1']
).join(', ').freeze

ACCEPT_JSON = {'Accept' => RESULT_JSON}.freeze
Expand Down

0 comments on commit 7ca0fd8

Please sign in to comment.