summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--capital.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/capital.cpp b/capital.cpp index 3488c1d..dd7f129 100644 --- a/capital.cpp +++ b/capital.cpp
@@ -128,6 +128,8 @@ Magick::Image capital::getImageForNoun(verbly::word pictured) const
128 curl::curl_easy lsthandle(lstios); 128 curl::curl_easy lsthandle(lstios);
129 std::string lsturl = pictured.getNotion().getImageNetUrl(); 129 std::string lsturl = pictured.getNotion().getImageNetUrl();
130 lsthandle.add<CURLOPT_URL>(lsturl.c_str()); 130 lsthandle.add<CURLOPT_URL>(lsturl.c_str());
131 lsthandle.add<CURLOPT_CONNECTTIMEOUT>(30);
132 lsthandle.add<CURLOPT_TIMEOUT>(300);
131 133
132 try 134 try
133 { 135 {
@@ -186,6 +188,7 @@ Magick::Image capital::getImageForNoun(verbly::word pictured) const
186 imghandle.add<CURLOPT_HTTPHEADER>(headers.get()); 188 imghandle.add<CURLOPT_HTTPHEADER>(headers.get());
187 imghandle.add<CURLOPT_URL>(url.c_str()); 189 imghandle.add<CURLOPT_URL>(url.c_str());
188 imghandle.add<CURLOPT_CONNECTTIMEOUT>(30); 190 imghandle.add<CURLOPT_CONNECTTIMEOUT>(30);
191 imghandle.add<CURLOPT_TIMEOUT>(300);
189 192
190 try 193 try
191 { 194 {