Skip to content

Commit

Permalink
fix example after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed Jul 7, 2019
1 parent 09bccbb commit dde7c67
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions examples/lwt/lwt_https_get.ml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ let main port host =
Httpaf_examples.Client.print ~on_eof:(Lwt.wakeup_later notify_finished)
in
let headers = Headers.of_list [ "host", host ] in
let request_body =
Client.TLS.request
~error_handler
~response_handler
socket
(Request.create ~headers `GET "/")
in
Client.TLS.request
~error_handler
~response_handler
socket
(Request.create ~headers `GET "/")
>>= fun request_body ->
Body.close_writer request_body;
finished
;;

0 comments on commit dde7c67

Please sign in to comment.