Aklakan commented on code in PR #3441:
URL: https://github.com/apache/jena/pull/3441#discussion_r2356699755


##########
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:
   I think that this overrideAcceptHeader should eventually be handled 
exclusively in the builder - but since this feature is part of the public API I 
better not touch it I guess.



-- 
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]

Reply via email to