SOLR-8167: Fix to get authorization to work with POST params (backport from branch_5x for 5.3.2 release)