elastic / elasticsearch-php

Official PHP client for Elasticsearch.
https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/index.html
MIT License
5.26k stars 966 forks source link

Added ELASTIC_CLIENT_URL_PLUS_AS_SPACE env variable for URL encode #1303

Closed ezimuel closed 1 year ago

ezimuel commented 1 year ago

This PR should fix #1278 adding an env variable ELASTIC_CLIENT_URL_PLUS_AS_SPACE that can be used to enable the URL encoder for translate a space character with %20 instead of +. The default value for the space character is +, to prevent BC break.