We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 112a214 + 4a0dfd0 commit 0d644b3Copy full SHA for 0d644b3
ocaml/xapi/config_file_sync.ml
@@ -57,7 +57,7 @@ let config_file_sync_handler (req: Http.Request.t) s _ =
57
debug "received request to write out dom0 config files";
58
Xapi_http.with_context "Syncing dom0 config files over HTTP" req s
59
(fun __context ->
60
- let uri = String.split '/' (req.Http.Request.uri) in
+ let uri = String.split '/' (req.Http.Request.uri) |> List.filter (fun x -> x <> "") in
61
req.Http.Request.close <- true;
62
debug "sending headers";
63
Http_svr.headers s (Http.http_200_ok ~keep_alive:false ());
0 commit comments