[java-support] branch master updated: Trim header value as well as name.
Scott Cantor
cantor.2 at osu.edu
Sun Dec 11 14:59:50 EST 2016
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch master
in repository java-support.
View the commit online:
http://git.shibboleth.net/view/?p=java-support.git;a=commit;h=b5ea2b397de6f8a8ddf000f5816d450d36451011
The following commit(s) were added to refs/heads/master by this push:
new b5ea2b3 Trim header value as well as name.
b5ea2b3 is described below
commit b5ea2b397de6f8a8ddf000f5816d450d36451011
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Sun Dec 11 14:59:43 2016 -0500
Trim header value as well as name.
---
.../utilities/java/support/net/DynamicResponseHeaderFilter.java | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/main/java/net/shibboleth/utilities/java/support/net/DynamicResponseHeaderFilter.java b/src/main/java/net/shibboleth/utilities/java/support/net/DynamicResponseHeaderFilter.java
index 7f4dfa7..1f69640 100644
--- a/src/main/java/net/shibboleth/utilities/java/support/net/DynamicResponseHeaderFilter.java
+++ b/src/main/java/net/shibboleth/utilities/java/support/net/DynamicResponseHeaderFilter.java
@@ -74,9 +74,10 @@ public class DynamicResponseHeaderFilter implements Filter {
if (map != null) {
headers = new HashMap<>(map.size());
for (final Map.Entry<String,String> entry : map.entrySet()) {
- final String trimmed = StringSupport.trimOrNull(entry.getKey());
- if (trimmed != null && entry.getValue() != null) {
- headers.put(trimmed, entry.getValue());
+ final String trimmedName = StringSupport.trimOrNull(entry.getKey());
+ final String trimmedValue = StringSupport.trimOrNull(entry.getValue());
+ if (trimmedName != null && trimmedValue != null) {
+ headers.put(trimmedName, trimmedValue);
}
}
} else {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list