Raised ticket https://issues.apache.org/jira/browse/TIKA-3320
From: Subhajit Das<mailto:[email protected]> Sent: 15 March 2021 08:30 PM To: [email protected]<mailto:[email protected]> Subject: RE: TikaServer Header Name is Case-sensitive Hi Nick, Saw the source code. First a case-sensetive checking happens for start with, then gets the declared method of the respective config class, and invokes the config. The same is maintained in newer tikaserver. But, headers should be case-insensetive. This can be achieved by doing case-insensetive checking. For get declared method we can assume only fields will be there (irrespective of case) for any name. From: Nick Burch<mailto:[email protected]> Sent: 15 March 2021 08:19 PM To: [email protected]<mailto:[email protected]> Subject: Re: TikaServer Header Name is Case-sensitive On Mon, 15 Mar 2021, Subhajit Das wrote: > It seems that TikaServer 1.25 header like “X-Tika-PDFOcrStrategy” is > case sensitive. Yes. That's bcause those then get mapped onto underlying Java classes and methods, which are case sensitive > According to > :https://stackoverflow.com/questions/5258977/are-http-headers-case-sensitive, > header names should not be case sensitive. > Is there any to configure this? Nothing on the Tika side, we are case sensitive due to the mapping to underlying Java stuff. You'd need to do any configuration on your end to not mangle the headers, sorry Nick
