Skip to content

Commit

Permalink
Merge pull request #2008 from l2dy/rfc3261token
Browse files Browse the repository at this point in the history
Fix RFC3261 token check
  • Loading branch information
liviuchircu committed Mar 12, 2020
2 parents 5b482b6 + 0a3bde4 commit 36f0119
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions parser/parse_methods.c
Expand Up @@ -38,12 +38,13 @@
*/
static inline int method_char(char _c)
{
return (_c >= 65 && _c <= 90) /* upper alpha */
return (_c >= 65 && _c <= 90) /* upper alpha */
|| (_c >= 97 && _c <= 122) /* lower aplha */
|| (_c >= 48 && _c <= 57) /* digits */
|| (_c == '-') || (_c == '.') || (_c == '%') || (_c == '*')
|| (_c == '_') || (_c == '+') || (_c == '~') || (_c == '+');
}
|| (_c >= 48 && _c <= 57) /* digits */
|| (_c == '-') || (_c == '.') || (_c == '!') || (_c == '%')
|| (_c == '*') || (_c == '_') || (_c == '+') || (_c == '`')
|| (_c == '\'') || (_c == '~');
}


/*
Expand Down

0 comments on commit 36f0119

Please sign in to comment.