Deindent HTTPFetchRequest::HTTPFetchRequest()
authorShadowNinja <shadowninja@minetest.net>
Fri, 17 Jan 2014 00:33:02 +0000 (19:33 -0500)
committerShadowNinja <shadowninja@minetest.net>
Fri, 17 Jan 2014 01:14:55 +0000 (20:14 -0500)
src/httpfetch.cpp

index bc029ed7a0df2acbb47709448d4498887fafb2a2..599507562db4e9bee34d43deb2c04f702813a045 100644 (file)
@@ -42,24 +42,24 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 JMutex g_httpfetch_mutex;
 std::map<unsigned long, std::list<HTTPFetchResult> > g_httpfetch_results;
 
-       HTTPFetchRequest::HTTPFetchRequest()
-       {
-               url = "";
-               caller = HTTPFETCH_DISCARD;
-               request_id = 0;
-               timeout = g_settings->getS32("curl_timeout");
-               connect_timeout = timeout * 5;
-               
-               useragent = std::string("Minetest/") + minetest_version_hash + " ";
+HTTPFetchRequest::HTTPFetchRequest()
+{
+       url = "";
+       caller = HTTPFETCH_DISCARD;
+       request_id = 0;
+       timeout = g_settings->getS32("curl_timeout");
+       connect_timeout = timeout * 5;
+       
+       useragent = std::string("Minetest/") + minetest_version_hash + " ";
 #ifdef _WIN32
-               useragent += "(Windows)";
+       useragent += "(Windows)";
 #else
-               struct utsname osinfo;
-               uname(&osinfo);
-               useragent += std::string("(") + osinfo.sysname + "/"
-                               + osinfo.release + " " + osinfo.machine + ")";
+       struct utsname osinfo;
+       uname(&osinfo);
+       useragent += std::string("(") + osinfo.sysname + "/"
+                       + osinfo.release + " " + osinfo.machine + ")";
 #endif
-       }
+}
 
 
 static void httpfetch_deliver_result(const HTTPFetchResult &fetchresult)