Request uri: keep "/" at the end of the url, if any
This commit is contained in:
parent
bdca94d1bb
commit
c839dee6ea
|
@ -53,7 +53,7 @@ function Request(data::String)
|
|||
((?P<protocol>[^:/]+)://)? # optional protocol
|
||||
(?P<host>[^:/]+) # required host
|
||||
(:(?P<port>[0-9]{1,5}))? # optional port (will match impossible 65000+ ports)
|
||||
(/(?P<path>[^\?]+))? # optional path
|
||||
(/(?P<path>[^\?]*))? # optional path
|
||||
(\?(?P<query>[^\?]+))? # optional query
|
||||
"""x
|
||||
s = endswith(data, "\r\n") ? data[1:end-2] : data
|
||||
|
|
Loading…
Reference in New Issue