INT-2306 fixed populateUserDefinedHeaders() to account for standard heades

This commit is contained in:
Oleg Zhurakousky
2011-12-15 17:28:54 -05:00
parent dd8c0aa8fc
commit 390bf504dd
2 changed files with 15 additions and 4 deletions

View File

@@ -159,8 +159,10 @@ public abstract class AbstractHeaderMapper<T> implements RequestReplyHeaderMappe
Object value = headers.get(headerName);
if (value != null) {
try {
String key = this.addPrefixIfNecessary(this.userDefinedHeaderPrefix, headerName);
this.populateUserDefinedHeader(key, value, target);
if (!headerName.startsWith(this.standardHeaderPrefix)){
String key = this.addPrefixIfNecessary(this.userDefinedHeaderPrefix, headerName);
this.populateUserDefinedHeader(key, value, target);
}
}
catch (Exception e) {
if (logger.isWarnEnabled()) {