Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Update request timeouts

ozanarmaganda748654591b
diff --git a/src/http_proxy.cpp b/src/http_proxy.cpp
index 6647074d..b2d2c684 100644
--- a/src/http_proxy.cpp
+++ b/src/http_proxy.cpp
@@ -25,13 +25,13 @@ http_proxy_res_t HttpProxy::send(const std::string& url, const std::string& meth
http_proxy_res_t res;
if(method == "GET") {
- res.status_code = client.get_response(url, res.body, res.headers, headers);
+ res.status_code = client.get_response(url, res.body, res.headers, headers, 30 * 1000);
} else if(method == "POST") {
- res.status_code = client.post_response(url, body, res.body, res.headers, headers);
+ res.status_code = client.post_response(url, body, res.body, res.headers, headers, 30 * 1000);
} else if(method == "PUT") {
- res.status_code = client.put_response(url, body, res.body, res.headers);
+ res.status_code = client.put_response(url, body, res.body, res.headers, 30 * 1000);
} else if(method == "DELETE") {
- res.status_code = client.delete_response(url, res.body, res.headers);
+ res.status_code = client.delete_response(url, res.body, res.headers, 30 * 1000);
} else {
res.status_code = 400;
nlohmann::json j;