about summary refs log tree commit diff stats
path: root/difference.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'difference.cpp')
-rw-r--r--difference.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/difference.cpp b/difference.cpp index 9fd3320..9c060d4 100644 --- a/difference.cpp +++ b/difference.cpp
@@ -165,6 +165,8 @@ std::pair<Magick::Image, Magick::Image>
165 curl::curl_easy lsthandle(lstios); 165 curl::curl_easy lsthandle(lstios);
166 std::string lsturl = pictured.getNotion().getImageNetUrl(); 166 std::string lsturl = pictured.getNotion().getImageNetUrl();
167 lsthandle.add<CURLOPT_URL>(lsturl.c_str()); 167 lsthandle.add<CURLOPT_URL>(lsturl.c_str());
168 lsthandle.add<CURLOPT_CONNECTTIMEOUT>(30);
169 lsthandle.add<CURLOPT_TIMEOUT>(300);
168 170
169 try 171 try
170 { 172 {
@@ -277,6 +279,7 @@ Magick::Image difference::getImageAtUrl(std::string url) const
277 imghandle.add<CURLOPT_HTTPHEADER>(headers.get()); 279 imghandle.add<CURLOPT_HTTPHEADER>(headers.get());
278 imghandle.add<CURLOPT_URL>(url.c_str()); 280 imghandle.add<CURLOPT_URL>(url.c_str());
279 imghandle.add<CURLOPT_CONNECTTIMEOUT>(30); 281 imghandle.add<CURLOPT_CONNECTTIMEOUT>(30);
282 imghandle.add<CURLOPT_TIMEOUT>(300);
280 283
281 try 284 try
282 { 285 {