From 0708dd36e72dfc11022d37dbc214e51413126234 Mon Sep 17 00:00:00 2001 From: niphlod Date: Tue, 28 Jun 2016 22:00:57 +0200 Subject: [PATCH] fixes #1331 (just rocket, really) --- gluon/rocket.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gluon/rocket.py b/gluon/rocket.py index 83261a36..c41ac32d 100644 --- a/gluon/rocket.py +++ b/gluon/rocket.py @@ -1184,17 +1184,17 @@ except ImportError: # Define Constants re_SLASH = re.compile('%2F', re.IGNORECASE) re_REQUEST_LINE = re.compile(r"""^ -(?POPTIONS|GET|HEAD|POST|PUT|DELETE|TRACE|CONNECT) # Request Method -\ # (single space) +(?POPTIONS|GET|HEAD|POST|PUT|DELETE|PATCH|TRACE|CONNECT) # Req Method +\ # single space ( - (?P[^:/]+) # Scheme + (?P[^:/]+) # Scheme (://) # - (?P[^/]+) # Host + (?P[^/]+) # Host )? # -(?P(\*|/[^ \?]*)) # Path -(\? (?P[^ ]*))? # Query String -\ # (single space) -(?PHTTPS?/1\.[01]) # Protocol +(?P(\*|/[^ \?]*)) # Path +(\? (?P[^ ]*))? # Query String +\ # single space +(?PHTTPS?/1\.[01]) # Protocol $ """, re.X) LOG_LINE = '%(client_ip)s - "%(request_line)s" - %(status)s %(size)s'