Skip to content

Commit ea226c4

Browse files
committed
Simplify
1 parent 23a8e0e commit ea226c4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/HttpParser.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ struct HttpParser {
242242
static inline bool isUnlikelyFieldNameByte(unsigned char c)
243243
{
244244
/* Digits and 14 of the 15 non-alphanum characters (lacking hyphen) */
245-
return ((c == '~') | (c == '|') | (c == '`') | (c == '_') | (c == '^') | (c == '.') | (c == '+') | (c == '*')
246-
| (c == '\'') | (c == '&') | (c == '%') | (c == '$') | (c == '#') | (c == '!')) || ((c >= 48) & (c <= 57));
245+
return ((c == '~') | (c == '|') | (c == '`') | (c == '_') | (c == '^') | (c == '.') | (c == '+')
246+
| (c == '*') | (c == '!')) || ((c >= 48) & (c <= 57)) || ((c <= 39) & (c >= 35));
247247
}
248248

249249
static inline bool isFieldNameByteFastLowercased(unsigned char &in) {

0 commit comments

Comments
 (0)