Skip to content

Commit

Permalink
Update cohttp/src/request.ml
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanlong authored Sep 1, 2020
1 parent 51e95e6 commit 207b564
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cohttp/src/request.ml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ let uri { scheme ; resource ; headers ; meth ; _ } =
| None -> Uri.of_string ""
| Some host ->
let host_uri = Uri.of_string ("//"^host) in
let uri = Uri.(with_host (of_string "") (host host_uri)) in
Uri.(with_port uri (port host_uri))
Uri.(make ?host:(host host_uri) ?port:(port host_uri) ()
end
| authority when meth = `CONNECT -> Uri.of_string ("//" ^ authority)
| path ->
Expand Down

0 comments on commit 207b564

Please sign in to comment.