Elasticsearch: Make headers case-insensitive

Created on 14 Jan 2017  ·  3Comments  ·  Source: elastic/elasticsearch

Elasticsearch version:all

Plugins installed: []

JVM version:all

OS version:all

Description of the problem including expected versus actual behavior:
perhaps setHeaders method can't override default header in RestClient, because httpHeader names are case-insensitive.suggest converting all default header and request header names to lowercase/uppercase.

diff

:CorFeatureJava Low Level REST Client >bug help wanted

All 3 comments

I’d like to take this up if no one is already working on this or has been assigned to this.

go ahead @adityasrini thanks!

given that we have decided (see #30616) to remove support for default headers, as they are already supported by the apache http client which we use to perform requests, I am going to close this.

Was this page helpful?
0 / 5 - 0 ratings