From 5248d9c93c389e5cf4bd302c609a13447f31e71e Mon Sep 17 00:00:00 2001 From: Ed Yu Date: Wed, 24 May 2023 10:03:31 -0700 Subject: [PATCH] Setup Request.url on the server side --- src/Handlers.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Handlers.jl b/src/Handlers.jl index 88167960a..c9f615b7b 100644 --- a/src/Handlers.jl +++ b/src/Handlers.jl @@ -54,6 +54,7 @@ function streamhandler(handler) return function(stream::Stream) request::Request = stream.message request.body = read(stream) + request.url = URIs.URI(request.target) closeread(stream) request.response::Response = handler(request) request.response.request = request