]> git.sur5r.net Git - minitube/blobdiff - src/httputils.cpp
New upstream version 3.1
[minitube] / src / httputils.cpp
index fe007cbb00df0c48ad7e65109bf49fe8c83fe9f6..d522f6e3423e9c2fad7e3fcbad6571ea88ac1a94 100644 (file)
@@ -1,9 +1,9 @@
 #include "httputils.h"
+#include "cachedhttp.h"
 #include "constants.h"
 #include "http.h"
-#include "throttledhttp.h"
-#include "cachedhttp.h"
 #include "localcache.h"
+#include "throttledhttp.h"
 
 Http &HttpUtils::notCached() {
     static Http *h = [] {
@@ -47,14 +47,15 @@ void HttpUtils::clearCaches() {
 
 const QByteArray &HttpUtils::userAgent() {
     static const QByteArray ua = [] {
-        return QString(QLatin1String(Constants::NAME)
-                       + QLatin1Char('/') + QLatin1String(Constants::VERSION)
-                       + QLatin1String(" ( ") + Constants::WEBSITE + QLatin1String(" )")).toUtf8();
+        return QString(QLatin1String(Constants::NAME) + QLatin1Char('/') +
+                       QLatin1String(Constants::VERSION) + QLatin1String(" ( ") +
+                       Constants::WEBSITE + QLatin1String(" )"))
+                .toUtf8();
     }();
     return ua;
 }
 
 const QByteArray &HttpUtils::stealthUserAgent() {
-    static const QByteArray ua = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36";
+    static const QByteArray ua = "curl/7.37.0";
     return ua;
 }