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


##########
jena-arq/src/main/java/org/apache/jena/http/sys/ExecHTTPBuilder.java:
##########
@@ -253,22 +262,58 @@ public Y substitution(Var var, Node value) {
         return thisBuilder();
     }
 
+    /** Setting this header overrides any other header. */
     public Y acceptHeader(String acceptHeader) {
         Objects.requireNonNull(acceptHeader);
         this.appAcceptHeader = acceptHeader;
+        this.selectAcceptHeader = acceptHeader;
+        this.askAcceptHeader = acceptHeader;
+        this.graphAcceptHeader = acceptHeader;
+        this.datasetAcceptHeader = acceptHeader;
+        return thisBuilder();
+    }

Review Comment:
   This method now sets all header fields to the given value. The 
`appAcceptHeader` field is not used anymore.



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