We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23a8e0e commit ea226c4Copy full SHA for ea226c4
1 file changed
src/HttpParser.h
@@ -242,8 +242,8 @@ struct HttpParser {
242
static inline bool isUnlikelyFieldNameByte(unsigned char c)
243
{
244
/* 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));
+ return ((c == '~') | (c == '|') | (c == '`') | (c == '_') | (c == '^') | (c == '.') | (c == '+')
+ | (c == '*') | (c == '!')) || ((c >= 48) & (c <= 57)) || ((c <= 39) & (c >= 35));
247
}
248
249
static inline bool isFieldNameByteFastLowercased(unsigned char &in) {
0 commit comments