INT-1662 added FROM tests to support this issue

This commit is contained in:
Oleg Zhurakousky
2010-12-08 14:17:10 -05:00
parent 3775efc616
commit cdb3be5ea2
3 changed files with 690 additions and 1 deletions

View File

@@ -388,7 +388,7 @@ public class DefaultHttpHeaderMapper implements HeaderMapper<HttpHeaders> {
: StringUtils.commaDelimitedListToStringArray((String) value);
Set<HttpMethod> allowedMethods = new HashSet<HttpMethod>();
for (String next : values) {
allowedMethods.add(HttpMethod.valueOf(next));
allowedMethods.add(HttpMethod.valueOf(next.trim()));
}
target.setAllow(allowedMethods);
}