The ServiceClientResponse class is a POJO that doesn't provide any good methods for getting headers in a case-insensitive matter, so classes using the POJO are just grabbing the array of headers and checking for the header of interest themselves. This makes it easy for those classes to look for a header in a case-sensitive manner (which is bad).
Semi-ideally, we should update the POJO to not be not-great. Ideally, we should make the POJO not exist. At the very least, we should fix the classes that are using it do a case-insensitive comparison when looking for headers.
- The classes using the ServiceClientResponse.getHeaders() should handle headers in a case-insensitive manner.