diff --git a/documentation/images/examples/CMakeLists.txt b/documentation/images/examples/CMakeLists.txt index 384f2bd..776e0da 100644 --- a/documentation/images/examples/CMakeLists.txt +++ b/documentation/images/examples/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.13) project(images) # compilation error -#add_basic_example(download_generated_image) +add_basic_example(download_generated_image) add_basic_example(generate_edit) add_basic_example(generate_edit_async) add_basic_example(generate_image) diff --git a/documentation/images/examples/download_generated_image.cpp b/documentation/images/examples/download_generated_image.cpp index 995f7f0..680f29a 100644 --- a/documentation/images/examples/download_generated_image.cpp +++ b/documentation/images/examples/download_generated_image.cpp @@ -10,8 +10,9 @@ int main() { "a siamese cat!" ); Network::Download( - "C:/some/folder/file.png", // to - response["data"][0]["url"].get() // from + "C:/some/folder/file.png", // to + response["data"][0]["url"].get(), // from + netimpl::components::Header() ); } catch (std::exception& e) {