Permalink
Browse files

use json page when publishing saves from save browser

  • Loading branch information...
jacob1 committed Feb 25, 2016
1 parent 9468c3a commit 983ed4eb5397dc237811a891b4149802437554d8
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/client/Client.cpp
@@ -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;
}

0 comments on commit 983ed4e

Please sign in to comment.