Skip to content

Commit bad9c14

Browse files
committed
Http_client: make it possible to do a request with empty path (rewritten to "/")
1 parent d1df25a commit bad9c14

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/server/ocsigen_http_client.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ let raw_request
299299
?client ?(keep_alive = true) ?headers ?(https=false) ?port
300300
~content ?content_length ~http_method ~host ~inet_addr ~uri () =
301301

302+
let uri = if uri = "" then "/" else uri in
302303

303304
let head = http_method = Ocsigen_http_frame.Http_header.HEAD in
304305

0 commit comments

Comments
 (0)