Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
uNetworkingAB committed Mar 9, 2024
1 parent 23a8e0e commit ea226c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HttpParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ struct HttpParser {
static inline bool isUnlikelyFieldNameByte(unsigned char c)
{
/* Digits and 14 of the 15 non-alphanum characters (lacking hyphen) */
return ((c == '~') | (c == '|') | (c == '`') | (c == '_') | (c == '^') | (c == '.') | (c == '+') | (c == '*')
| (c == '\'') | (c == '&') | (c == '%') | (c == '$') | (c == '#') | (c == '!')) || ((c >= 48) & (c <= 57));
return ((c == '~') | (c == '|') | (c == '`') | (c == '_') | (c == '^') | (c == '.') | (c == '+')
| (c == '*') | (c == '!')) || ((c >= 48) & (c <= 57)) || ((c <= 39) & (c >= 35));
}

static inline bool isFieldNameByteFastLowercased(unsigned char &in) {
Expand Down

0 comments on commit ea226c4

Please sign in to comment.