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 5248d9c
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 = URIs.URI(request.target)
closeread(stream)
request.response::Response = handler(request)
request.response.request = request
Expand Down

0 comments on commit 5248d9c

Please sign in to comment.