From b533163021dcedff0e88a00b490a37ff962c6b8e Mon Sep 17 00:00:00 2001 From: Tpt Date: Mon, 31 May 2021 20:07:05 +0200 Subject: [PATCH] Adds application/sparql-results+json to federated queries accept --- lib/src/sparql/service.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/sparql/service.rs b/lib/src/sparql/service.rs index 58a75f95..0fdc5dc5 100644 --- a/lib/src/sparql/service.rs +++ b/lib/src/sparql/service.rs @@ -118,7 +118,10 @@ impl ServiceHandler for SimpleServiceHandler { .method(Method::POST) .uri(service_name.as_str()) .header(CONTENT_TYPE, "application/sparql-query") - .header(ACCEPT, QueryResultsFormat::Xml.media_type()) + .header( + ACCEPT, + "application/sparql-results+json, application/sparql-results+xml", + ) .header(USER_AGENT, concat!("Oxigraph/", env!("CARGO_PKG_VERSION"))) .body(Some(query.to_string().into_bytes())) .map_err(invalid_input_error)?;