Skip to content

Commit 53d2373

Browse files
Fix Web Integration Service library api example by using the webserver_option() function instead of the old document_root() function
1 parent 39d6b0b commit 53d2373

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/web_integration_service/library_api/c++11/web_integration_service_library_api.cxx

+4-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ void service_main(
3636
{
3737
rti::webdds::ServiceProperty service_property;
3838

39-
service_property.cfgfile(cfg_file).cfgname(cfg_name).document_root(
40-
document_root);
39+
service_property
40+
.cfgfile(cfg_file)
41+
.cfgname(cfg_name)
42+
.webserver_option("document_root", document_root);
4143

4244
rti::webdds::Service service(std::move(service_property));
4345

0 commit comments

Comments
 (0)