Skip to content

Commit

Permalink
Setup Request.url on the server side
Browse files Browse the repository at this point in the history
  • Loading branch information
edyu committed May 24, 2023
1 parent 19c6b6f commit 525cbb4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Handlers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ function streamhandler(handler)
return function(stream::Stream)
request::Request = stream.message
request.body = read(stream)
request.url = URI(request.target)
closeread(stream)
request.response::Response = handler(request)
request.response.request = request
Expand Down

0 comments on commit 525cbb4

Please sign in to comment.