Skip to content

Commit

Permalink
Merge pull request #35 from BryainZhang/master
Browse files Browse the repository at this point in the history
compatible string_view
  • Loading branch information
qicosmos authored Nov 17, 2020
2 parents faeed90 + 2312a92 commit f7b8412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/rest_rpc/rpc_client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ namespace rest_rpc {
// For Java client.
// TODO(qwang): Call java callback.
// handle error.
on_result_received_callback_(req_id, data.to_string());
on_result_received_callback_(req_id, std::string(data.data(), data.size()));
} else {
// For CPP client.
temp_req_id_ = req_id;
Expand Down

0 comments on commit f7b8412

Please sign in to comment.