File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,18 @@ The library uses [beast](https://www.boost.org/doc/libs/develop/libs/beast/doc/h
55
55
56
56
Use cmake to build it on Windows, macOS and Linux.
57
57
58
+ ### Dependencies using VCPKG
59
+
60
+ ```
61
+ ./vcpkg install boost
62
+ ./vcpkg install fmt
63
+ ./vcpkg install uriparser
64
+ ./vcpkg install nlohmann-json
65
+ ./vcpkg install spdlog
66
+ ./vcpkg install protobuf
67
+ ./vcpkg install grpc
68
+ ```
69
+
58
70
## Use with CMake
59
71
60
72
```CMake
Original file line number Diff line number Diff line change @@ -43,7 +43,10 @@ stdx::optional<std::string> consulcpp::KV::get( const std::string & key ) const
43
43
spdlog::error ( " {}. Json was: {}" , e.what (), response.value () );
44
44
}
45
45
if ( !value.empty () ){
46
- res = boost::beast::detail::base64_decode ( value );
46
+ char * out = (char *)calloc ( value.size (), sizeof (char ) );
47
+ auto info = boost::beast::detail::base64::decode ( out, value.c_str (), value.size () );
48
+ res = std::string ( out, info.first );
49
+ free ( out );
47
50
}
48
51
}
49
52
}
You can’t perform that action at this time.
0 commit comments