Skip to content

Commit f875200

Browse files
sfan5SmallJoker
authored andcommitted
Update docs regarding ENABLE_CURL
1 parent b98afa6 commit f875200

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

doc/compiling/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ General options and their default values:
1414
BUILD_UNITTESTS=TRUE - Build unittest sources
1515
BUILD_BENCHMARKS=FALSE - Build benchmark sources
1616
BUILD_DOCUMENTATION=TRUE - Build doxygen documentation
17-
CMAKE_BUILD_TYPE=Release - Type of build (Release vs. Debug)
17+
CMAKE_BUILD_TYPE=Release - Type of build (optimizaton level, debug information)
1818
Release - Release build
1919
Debug - Debug build
2020
SemiDebug - Partially optimized debug build
@@ -25,7 +25,7 @@ General options and their default values:
2525
USE_SDL2_STATIC=TRUE - Links with SDL2::SDL2-static instead of SDL2::SDL2
2626
USE_SDL3=FALSE - Build with SDL3; Enables IrrlichtMt device SDL3 (experimental)
2727
USE_SDL3_STATIC=TRUE - Links with SDL3::SDL3-static instead of SDL3::SDL3-shared
28-
ENABLE_CURL=ON - Build with cURL; Enables use of online mod repo, public serverlist and remote media fetching via http
28+
ENABLE_CURL=ON - Build with cURL; Enables use of server list, content browser and more
2929
ENABLE_CURSES=ON - Build with (n)curses; Enables a server side terminal (command line option: --terminal)
3030
ENABLE_GETTEXT=ON - Build with Gettext; Allows using translations
3131
ENABLE_LEVELDB=ON - Build with LevelDB; Enables use of LevelDB map backend

doc/compiling/windows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ After you successfully built vcpkg you can easily install the required libraries
1717
vcpkg install zlib zstd curl[ssl] openal-soft libvorbis libogg libjpeg-turbo sqlite3 freetype luajit gmp jsoncpp gettext[tools] sdl2 --triplet x64-windows
1818
```
1919

20-
- `curl` is optional, but required to read the serverlist, `curl[ssl]` is required to use the content store.
20+
- `curl[ssl]` is optional, but required to use many online features.
2121
- `openal-soft`, `libvorbis` and `libogg` are optional, but required to use sound.
2222
- `luajit` is optional, it replaces the integrated Lua interpreter with a faster just-in-time interpreter.
2323
- `gmp` and `jsoncpp` are optional, otherwise the bundled versions will be compiled

src/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ if(PRECOMPILE_HEADERS)
6767
endif()
6868

6969

70-
option(ENABLE_CURL "Enable cURL support for fetching media" TRUE)
70+
option(ENABLE_CURL "Enable cURL support" TRUE)
7171
set(USE_CURL FALSE)
7272

7373
if(ENABLE_CURL)
@@ -82,10 +82,10 @@ endif()
8282

8383
if(NOT USE_CURL)
8484
if(BUILD_CLIENT)
85-
message(WARNING "cURL is required to load the server list")
85+
message(WARNING "cURL is required to use the server list, content browser or update checker")
8686
endif()
8787
if(BUILD_SERVER)
88-
message(WARNING "cURL is required to announce to the server list")
88+
message(WARNING "cURL is required to announce to the server list or use the HTTP API")
8989
endif()
9090
endif()
9191

src/httpfetch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ HTTPFetchOngoing::HTTPFetchOngoing(const HTTPFetchRequest &request_,
220220

221221
// Set static cURL options
222222
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1L);
223-
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, CURLFOLLOW_ALL);
223+
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
224224
curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 3L);
225225
curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, ""); // = all supported ones
226226

0 commit comments

Comments
 (0)