dsmiley commented on code in PR #2927: URL: https://github.com/apache/solr/pull/2927#discussion_r1915918653
########## solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java: ########## @@ -1170,6 +1171,21 @@ protected Object _getHandler() { return handler; } + /** Gets the client (user-agent) SolrJ version, or null if isn't SolrJ. */ + public SolrVersion getUserAgentSolrVersion() { + String header = req.getHeader("User-Agent"); + if (header == null || !header.startsWith("Solr")) { + return null; + } + try { + return SolrVersion.valueOf(header.substring(header.lastIndexOf(' ') + 1)); Review Comment: BTW that method has no callers; isn't tested. I did manually test it. Obviously I intend to have it be used soon. -- 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