Skip to content

Commit 0d644b3

Browse files
committed
Merge pull request xapi-project#1695 from jonludlam/CA-129239
CA-129239: Fix config file syncing
2 parents 112a214 + 4a0dfd0 commit 0d644b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocaml/xapi/config_file_sync.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ let config_file_sync_handler (req: Http.Request.t) s _ =
5757
debug "received request to write out dom0 config files";
5858
Xapi_http.with_context "Syncing dom0 config files over HTTP" req s
5959
(fun __context ->
60-
let uri = String.split '/' (req.Http.Request.uri) in
60+
let uri = String.split '/' (req.Http.Request.uri) |> List.filter (fun x -> x <> "") in
6161
req.Http.Request.close <- true;
6262
debug "sending headers";
6363
Http_svr.headers s (Http.http_200_ok ~keep_alive:false ());

0 commit comments

Comments
 (0)