jdyer1 commented on PR #2926: URL: https://github.com/apache/solr/pull/2926#issuecomment-2563894874
Here is an approach that won't need any change to the client itself. 1. See `DebugServlet.java' method 'doHead'. Here it records the request body in a variable named `requestBody`, but unfortunately any subsequent POST request will overwrite it before the test can examine it. `DebugServlet` will need to keep the HEAD request body in a separate variable. 2. See `HttpJdkSolrClientTest.java' method `assertNoHeadRequestWithSsl`. Here it asserts that if the randomized test runner configured an 'https' connection, then the HEAD request should not be fired. We can additionally assert that in the other case, whenever the HEAD request is fired, that it contains a body, by looking at the new variable created in `DebugServlet`. -- 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