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)?;