Skip to content

Commit b11b48e

Browse files
committedJan 17, 2014
Deindent HTTPFetchRequest::HTTPFetchRequest()
1 parent 64c0e40 commit b11b48e

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed
 

‎src/httpfetch.cpp

+15-15
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,24 @@ with this program; if not, write to the Free Software Foundation, Inc.,
4242
JMutex g_httpfetch_mutex;
4343
std::map<unsigned long, std::list<HTTPFetchResult> > g_httpfetch_results;
4444

45-
HTTPFetchRequest::HTTPFetchRequest()
46-
{
47-
url = "";
48-
caller = HTTPFETCH_DISCARD;
49-
request_id = 0;
50-
timeout = g_settings->getS32("curl_timeout");
51-
connect_timeout = timeout * 5;
52-
53-
useragent = std::string("Minetest/") + minetest_version_hash + " ";
45+
HTTPFetchRequest::HTTPFetchRequest()
46+
{
47+
url = "";
48+
caller = HTTPFETCH_DISCARD;
49+
request_id = 0;
50+
timeout = g_settings->getS32("curl_timeout");
51+
connect_timeout = timeout * 5;
52+
53+
useragent = std::string("Minetest/") + minetest_version_hash + " ";
5454
#ifdef _WIN32
55-
useragent += "(Windows)";
55+
useragent += "(Windows)";
5656
#else
57-
struct utsname osinfo;
58-
uname(&osinfo);
59-
useragent += std::string("(") + osinfo.sysname + "/"
60-
+ osinfo.release + " " + osinfo.machine + ")";
57+
struct utsname osinfo;
58+
uname(&osinfo);
59+
useragent += std::string("(") + osinfo.sysname + "/"
60+
+ osinfo.release + " " + osinfo.machine + ")";
6161
#endif
62-
}
62+
}
6363

6464

6565
static void httpfetch_deliver_result(const HTTPFetchResult &fetchresult)

0 commit comments

Comments
 (0)
Please sign in to comment.