Aklakan commented on code in PR #3441:
URL: https://github.com/apache/jena/pull/3441#discussion_r2389283479
##########
jena-arq/src/main/java/org/apache/jena/sparql/exec/http/QueryExecHTTP.java:
##########
@@ -133,11 +149,15 @@ public QueryExecHTTP(String serviceURL, Query query,
String queryString, int url
this.defaultGraphURIs = defaultGraphURIs;
this.namedGraphURIs = namedGraphURIs;
this.sendMode = Objects.requireNonNull(sendMode);
- this.appProvidedAcceptHeader = explicitAcceptHeader;
+ this.overrideAcceptHeader = overrideAcceptHeader;
+ this.selectAcceptHeader = selectAcceptheader;
+ this.askAcceptHeader = askAcceptHeader;
+ this.graphAcceptHeader = graphAcceptHeader;
+ this.datasetAcceptHeader = datasetAcceptHeader;
// Important - handled as special case because the defaults vary by
query type.
if ( httpHeaders.containsKey(HttpNames.hAccept) ) {
- if ( this.appProvidedAcceptHeader != null )
- this.appProvidedAcceptHeader =
httpHeaders.get(HttpNames.hAccept);
+ if ( this.overrideAcceptHeader != null )
+ this.overrideAcceptHeader = httpHeaders.get(HttpNames.hAccept);
Review Comment:
Added handling of the overrideAcceptHeader to the builder - the new
constructor of QueryExecHTTP no longer uses the parameter whereas the old
constructor still supports it. This should resolve the issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]