about summary refs log tree commit homepage
path: root/ext/http11/http11_parser_common.rl
diff options
context:
space:
mode:
Diffstat (limited to 'ext/http11/http11_parser_common.rl')
-rw-r--r--ext/http11/http11_parser_common.rl5
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/http11/http11_parser_common.rl b/ext/http11/http11_parser_common.rl
index ee970b1..53c805f 100644
--- a/ext/http11/http11_parser_common.rl
+++ b/ext/http11/http11_parser_common.rl
@@ -11,12 +11,11 @@
   safe = ("$" | "-" | "_" | ".");
   extra = ("!" | "*" | "'" | "(" | ")" | ",");
   reserved = (";" | "/" | "?" | ":" | "@" | "&" | "=" | "+");
-  sorta_safe = ("\"" | "<" | ">");
-  unsafe = (CTL | " " | "#" | "%" | sorta_safe);
+  unsafe = (CTL | " " | "\"" | "#" | "%" | "<" | ">");
   national = any -- (alpha | digit | reserved | extra | safe | unsafe);
   unreserved = (alpha | digit | safe | extra | national);
   escape = ("%" xdigit xdigit);
-  uchar = (unreserved | escape | sorta_safe);
+  uchar = (unreserved | escape);
   pchar = (uchar | ":" | "@" | "&" | "=" | "+");
   tspecials = ("(" | ")" | "<" | ">" | "@" | "," | ";" | ":" | "\\" | "\"" | "/" | "[" | "]" | "?" | "=" | "{" | "}" | " " | "\t");