Paul-Blanchaert commented on PR #2926:
URL: https://github.com/apache/solr/pull/2926#issuecomment-2565544255

   The initial problem was solved by adding the http header "Content-Type" 
while keeping the noBody() (see below), so no need to store the body in a 
separate variable.
    HttpRequest.newBuilder(uriNoQueryParams)
               .method("HEAD", HttpRequest.BodyPublishers.**noBody**())
                   .header("**Content-Type**", ClientUtils.TEXT_JSON);
   I reverted the change and test on the http status.
   And I followed your suggestion by assuring that the header "Content-Type" is 
set via the DebugServlet. This is basically just testing whether the header 
function on the builder works fine, but It might prevent that future changes 
omit the content-type header that is apparently required to avoid the server 
exception on the HEAD request.
   Hope this helps!


-- 
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: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to