make opensearch xml HTTPS-aware