150151152153154155156157158159
} } } if (newName == null) { throw new ResponseHeaderRejectedException("HTTP header rejected: " + StringEscapeUtil.escapeJava(name)); } return newName; }
174175176177178179180181182183184
} } } if (newValue == null) { throw new ResponseHeaderRejectedException("HTTP header rejected: " + StringEscapeUtil.escapeJava(name) + "=" + StringEscapeUtil.escapeJava(value)); } return newValue; }
979899100101102103104105106
public String checkHeaderName(String name) { if (containsCRLF(name)) { String msg = "Invalid response header: " + StringEscapeUtil.escapeJava(name); log.getLogger().error(msg); throw new ResponseHeaderRejectedException(msg); } return name; }
149150151152153154155156157158
173174175176177178179180181182183
9899100101102103104105106107
9596979899100101102103104