Merge pull request #1378 from niphlod/fix/1331
fixes #1331 (just rocket, really)
This commit is contained in:
+3
-3
@@ -1184,8 +1184,8 @@ except ImportError:
|
|||||||
# Define Constants
|
# Define Constants
|
||||||
re_SLASH = re.compile('%2F', re.IGNORECASE)
|
re_SLASH = re.compile('%2F', re.IGNORECASE)
|
||||||
re_REQUEST_LINE = re.compile(r"""^
|
re_REQUEST_LINE = re.compile(r"""^
|
||||||
(?P<method>OPTIONS|GET|HEAD|POST|PUT|DELETE|TRACE|CONNECT) # Request Method
|
(?P<method>OPTIONS|GET|HEAD|POST|PUT|DELETE|PATCH|TRACE|CONNECT) # Req Method
|
||||||
\ # (single space)
|
\ # single space
|
||||||
(
|
(
|
||||||
(?P<scheme>[^:/]+) # Scheme
|
(?P<scheme>[^:/]+) # Scheme
|
||||||
(://) #
|
(://) #
|
||||||
@@ -1193,7 +1193,7 @@ re_REQUEST_LINE = re.compile(r"""^
|
|||||||
)? #
|
)? #
|
||||||
(?P<path>(\*|/[^ \?]*)) # Path
|
(?P<path>(\*|/[^ \?]*)) # Path
|
||||||
(\? (?P<query_string>[^ ]*))? # Query String
|
(\? (?P<query_string>[^ ]*))? # Query String
|
||||||
\ # (single space)
|
\ # single space
|
||||||
(?P<protocol>HTTPS?/1\.[01]) # Protocol
|
(?P<protocol>HTTPS?/1\.[01]) # Protocol
|
||||||
$
|
$
|
||||||
""", re.X)
|
""", re.X)
|
||||||
|
|||||||
Reference in New Issue
Block a user