Browse Source

Set timeout to 30 seconds

tags/0.9.13
tastytea 10 months ago
parent
commit
3808a89a13
Signed by: tastytea <tastytea@tastytea.de> GPG Key ID: CFC39497F1B26E07
2 changed files with 2 additions and 1 deletions
  1. 1
    1
      CMakeLists.txt
  2. 1
    0
      src/url.cpp

+ 1
- 1
CMakeLists.txt View File

@@ -1,6 +1,6 @@
1 1
 cmake_minimum_required (VERSION 3.7)
2 2
 project (expandurl-mastodon
3
-         VERSION 0.9.11
3
+         VERSION 0.9.12
4 4
          LANGUAGES CXX
5 5
 )
6 6
 

+ 1
- 0
src/url.cpp View File

@@ -65,6 +65,7 @@ const string expand(const string &url)
65 65
         "Connection: close",
66 66
     });
67 67
     request.setOpt<curlopts::FollowLocation>(true);
68
+    request.setOpt(curlopts::Timeout(30));
68 69
 
69 70
     try
70 71
     {

Loading…
Cancel
Save