From 3808a89a137a204eb4a55228d514d761d7d1f4bd Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 19 Aug 2018 21:41:35 +0200 Subject: [PATCH] Set timeout to 30 seconds --- CMakeLists.txt | 2 +- src/url.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 68a3c1f..9e1e6f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.7) project (expandurl-mastodon - VERSION 0.9.11 + VERSION 0.9.12 LANGUAGES CXX ) diff --git a/src/url.cpp b/src/url.cpp index 205dfba..a1832f0 100644 --- a/src/url.cpp +++ b/src/url.cpp @@ -65,6 +65,7 @@ const string expand(const string &url) "Connection: close", }); request.setOpt(true); + request.setOpt(curlopts::Timeout(30)); try {