Skip to content

Commit

Permalink
Fix #223 by skipping the setting of object_id if it is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
LasseBlaauwbroek committed Feb 17, 2021
1 parent 8365bca commit 50d4371
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion capnp-rpc-net/serialise.ml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ module Make (EP : Capnp_core.ENDPOINT) = struct
let b = Message.init_root ~message_size:100 () in
let boot = Message.bootstrap_init b in
Bootstrap.question_id_set boot (QuestionId.uint32 qid);
Schema.BuilderOps.write_string (Bootstrap.deprecated_object_id_get boot) object_id;
if not (String.equal object_id "") then
Schema.BuilderOps.write_string (Bootstrap.deprecated_object_id_get boot) object_id;
Message.to_message b
| `Call (qid, target, request, descs, results_to) ->
let c = Msg.Request.writable request in
Expand Down

0 comments on commit 50d4371

Please sign in to comment.