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