Request uri: keep "/" at the end of the url, if any

master
nixo 2020-10-25 00:30:17 +02:00
parent bdca94d1bb
commit c839dee6ea
1 changed files with 1 additions and 1 deletions

View File

@ -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