use json page when publishing saves from save browser

This commit is contained in:
jacob1
2016-02-24 22:05:11 -05:00
parent 9468c3a4a7
commit 983ed4eb53

View File

@@ -1544,7 +1544,7 @@ RequestStatus Client::PublishSave(int saveID)
std::stringstream urlStream;
char *data;
int dataStatus;
urlStream << "http://" << SERVER << "/Browse/View.html?ID=" << saveID << "&Key=" << authUser.SessionKey;
urlStream << "http://" << SERVER << "/Browse/View.json?ID=" << saveID << "&Key=" << authUser.SessionKey;
if (authUser.ID)
{
std::stringstream userIDStream;
@@ -1558,7 +1558,7 @@ RequestStatus Client::PublishSave(int saveID)
lastError = "Not authenticated";
return RequestFailure;
}
RequestStatus ret = ParseServerReturn(data, dataStatus, false);
RequestStatus ret = ParseServerReturn(data, dataStatus, true);
free(data);
return ret;
}