Commit e301d5fc authored by Walid Boudebouda's avatar Walid Boudebouda Committed by Dridi Boukelmoune

hpack: Remove redundant/incorrect header validation

Control characters will be caught by vct_ishdrval() anyways, but this
condition would also reject allowed obs-text non-ASCII characters.
Signed-off-by: 's avatarDridi Boukelmoune <dridi.boukelmoune@gmail.com>
parent 9c85dcbb
......@@ -73,12 +73,6 @@ h2h_checkhdr(const struct http *hp, const char *b, size_t namelen, size_t len)
break;
/* FALL_THROUGH */
case FLD_NAME:
if (*p <= 0x20 || *p >= 0x7f) {
VSLb(hp->vsl, SLT_BogoHeader,
"Illegal field header name (control): %.*s",
(int)(len > 20 ? 20 : len), b);
return (H2SE_PROTOCOL_ERROR);
}
if (isupper(*p)) {
VSLb(hp->vsl, SLT_BogoHeader,
"Illegal field header name (upper-case): %.*s",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment