From c839dee6ea97e094d33b6e198642b263fdb1e767 Mon Sep 17 00:00:00 2001 From: nixo Date: Sun, 25 Oct 2020 00:30:17 +0200 Subject: [PATCH] Request uri: keep "/" at the end of the url, if any --- src/types.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.jl b/src/types.jl index ec2185d..abea109 100644 --- a/src/types.jl +++ b/src/types.jl @@ -53,7 +53,7 @@ function Request(data::String) ((?P[^:/]+)://)? # optional protocol (?P[^:/]+) # required host (:(?P[0-9]{1,5}))? # optional port (will match impossible 65000+ ports) - (/(?P[^\?]+))? # optional path + (/(?P[^\?]*))? # optional path (\?(?P[^\?]+))? # optional query """x s = endswith(data, "\r\n") ? data[1:end-2] : data