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; std::stringstream urlStream;
char *data; char *data;
int dataStatus; 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) if (authUser.ID)
{ {
std::stringstream userIDStream; std::stringstream userIDStream;
@@ -1558,7 +1558,7 @@ RequestStatus Client::PublishSave(int saveID)
lastError = "Not authenticated"; lastError = "Not authenticated";
return RequestFailure; return RequestFailure;
} }
RequestStatus ret = ParseServerReturn(data, dataStatus, false); RequestStatus ret = ParseServerReturn(data, dataStatus, true);
free(data); free(data);
return ret; return ret;
} }