From 4d20a3ce912604fbd223e2733c6155bc697f530e Mon Sep 17 00:00:00 2001 From: Xinyu Hou Date: Tue, 27 Oct 2015 15:50:34 -0700 Subject: [PATCH] Add OS and arch in auth request #4933 --- src/lib/synergy/ToolApp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/synergy/ToolApp.cpp b/src/lib/synergy/ToolApp.cpp index 5f01cb81..f6cd2ef5 100644 --- a/src/lib/synergy/ToolApp.cpp +++ b/src/lib/synergy/ToolApp.cpp @@ -157,6 +157,8 @@ ToolApp::loginAuth() ss << JSON_URL << "auth/"; ss << "?email=" << ARCH->internet().urlEncode(email); ss << "&password=" << password; + ss << "&os=" << ARCH->internet().urlEncode(ARCH->getOSName()); + ss << "&arch=" << ARCH->internet().urlEncode(ARCH->getPlatformName()); std::cout << ARCH->internet().get(ss.str()) << std::endl; }