Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
URI-encode forwarded location header in proxy
Right now there are situations in which ElasticSearch puts characters in the character code range between 128 and 255 into the `Location` header. This leads to an exception when trying to pass on that header through the hapi proxy in versions before 15.0.0, because it validates that only US-ASCII characters are used in headers. To work around that situation, the `Location` header is encoded using `encodeURI()` for now. Closes elastic#8705
- Loading branch information