#5707 Change update notification url
This commit is contained in:
parent
af62174b59
commit
ef9842c819
|
@ -146,17 +146,17 @@ ToolApp::notifyUpdate()
|
||||||
std::vector<String> parts = synergy::string::splitString(data, ':');
|
std::vector<String> parts = synergy::string::splitString(data, ':');
|
||||||
size_t count = parts.size();
|
size_t count = parts.size();
|
||||||
|
|
||||||
if (count == 3) {
|
if (count == 3) {
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss << JSON_URL << "notify/upgrade";
|
ss << JSON_URL << "notify/update";
|
||||||
ss << "?from=" << parts[0];
|
ss << "?from=" << parts[0];
|
||||||
ss << "&to=" << parts[1];
|
ss << "&to=" << parts[1];
|
||||||
ss << "&serial=" << parts[2];
|
ss << "&serial=" << parts[2];
|
||||||
|
|
||||||
std::cout << ARCH->internet().get(ss.str()) << std::endl;
|
std::cout << ARCH->internet().get(ss.str()) << std::endl;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
throw XSynergy("Invalid upgrade data.");
|
throw XSynergy("Invalid update data.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue