diff options
| author | frosty <gabriel@bwaaa.monster> | 2026-02-27 18:32:23 -0500 |
|---|---|---|
| committer | frosty <gabriel@bwaaa.monster> | 2026-02-27 18:32:23 -0500 |
| commit | 9f2cd561286784fd000eb8a00f1f80db3185062c (patch) | |
| tree | 14216b6d50b34bab1c7f7ae70d628d3560613f9e /src/Routes/ImageProxy.c | |
| parent | 26e3403e039d1a80f2e62f8efe889ad5f40c8cee (diff) | |
| download | omnisearch-9f2cd561286784fd000eb8a00f1f80db3185062c.tar.gz | |
added proxying
Diffstat (limited to 'src/Routes/ImageProxy.c')
| -rw-r--r-- | src/Routes/ImageProxy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Routes/ImageProxy.c b/src/Routes/ImageProxy.c index 9dadef7..5141cd5 100644 --- a/src/Routes/ImageProxy.c +++ b/src/Routes/ImageProxy.c @@ -1,5 +1,5 @@ #include "ImageProxy.h" - +#include "../Proxy/Proxy.h" #include <curl/curl.h> #include <stdio.h> #include <stdlib.h> @@ -118,6 +118,7 @@ int image_proxy_handler(UrlParams *params) { curl_easy_setopt(curl, CURLOPT_WRITEDATA, &buf); curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); curl_easy_setopt(curl, CURLOPT_TIMEOUT, 10L); + apply_proxy_settings(curl); CURLcode res = curl_easy_perform(curl); |
