Logging interceptor tweak

This commit is contained in:
James Agnew 2018-05-28 11:16:33 -04:00
parent 9a6594444a
commit da9f335c06
1 changed files with 3 additions and 0 deletions

View File

@ -107,6 +107,9 @@ public class LoggingInterceptor implements IClientInterceptor {
* Add response location
*/
List<String> locationHeaders = theResponse.getHeaders(Constants.HEADER_LOCATION);
if (locationHeaders == null || locationHeaders.isEmpty()) {
locationHeaders = theResponse.getHeaders(Constants.HEADER_CONTENT_LOCATION);
}
if (locationHeaders != null && locationHeaders.size() > 0) {
String locationValue = locationHeaders.get(0);
IdDt locationValueId = new IdDt(locationValue);