summaryrefslogtreecommitdiff
path: root/src/httpfetch.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2017-04-23 10:24:00 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2017-04-23 10:24:00 +0200
commitdda171d2925e20efc00c78bcb45cf595fd986da9 (patch)
tree0d99fd64cb40bc4cf8b95102053dcfdee3a6dae6 /src/httpfetch.h
parent485bf2199834b26c1ee22b1ebc17e5707ed9579e (diff)
downloadminetest-dda171d2925e20efc00c78bcb45cf595fd986da9.tar.gz
minetest-dda171d2925e20efc00c78bcb45cf595fd986da9.tar.bz2
minetest-dda171d2925e20efc00c78bcb45cf595fd986da9.zip
LINT fix
Diffstat (limited to 'src/httpfetch.h')
-rw-r--r--src/httpfetch.h35
1 files changed, 13 insertions, 22 deletions
diff --git a/src/httpfetch.h b/src/httpfetch.h
index d64b80b66..29fb540d0 100644
--- a/src/httpfetch.h
+++ b/src/httpfetch.h
@@ -61,7 +61,7 @@ struct HTTPFetchRequest
// If not empty, should contain entries such as "Accept: text/html"
std::vector<std::string> extra_headers;
- //useragent to use
+ // useragent to use
std::string useragent;
HTTPFetchRequest();
@@ -77,24 +77,17 @@ struct HTTPFetchResult
unsigned long caller;
unsigned long request_id;
- HTTPFetchResult() :
- succeeded(false),
- timeout(false),
- response_code(0),
- data(""),
- caller(HTTPFETCH_DISCARD),
- request_id(0)
- {}
-
- HTTPFetchResult(const HTTPFetchRequest &fetch_request) :
- succeeded(false),
- timeout(false),
- response_code(0),
- data(""),
- caller(fetch_request.caller),
- request_id(fetch_request.request_id)
- {}
-
+ HTTPFetchResult()
+ : succeeded(false), timeout(false), response_code(0), data(""),
+ caller(HTTPFETCH_DISCARD), request_id(0)
+ {
+ }
+
+ HTTPFetchResult(const HTTPFetchRequest &fetch_request)
+ : succeeded(false), timeout(false), response_code(0), data(""),
+ caller(fetch_request.caller), request_id(fetch_request.request_id)
+ {
+ }
};
// Initializes the httpfetch module
@@ -124,8 +117,6 @@ void httpfetch_caller_free(unsigned long caller);
// Performs a synchronous HTTP request. This blocks and therefore should
// only be used from background threads.
-void httpfetch_sync(const HTTPFetchRequest &fetch_request,
- HTTPFetchResult &fetch_result);
-
+void httpfetch_sync(const HTTPFetchRequest &fetch_request, HTTPFetchResult &fetch_result);
#endif // !HTTPFETCH_HEADER