Update getMaster response model
This commit is contained in:
parent
6c745dc60c
commit
b573e7a8fa
|
@ -37,6 +37,9 @@ void onAPIRequest(HTTPServerRequest request, HTTPServerResponse response)
|
|||
handleRequest(apiEndpoint, requestJson);
|
||||
|
||||
//TODO: Allow request editing (requires recalculation of signature)
|
||||
//NOTE: This would not be a very useful feature, so this might be removed later.
|
||||
// One thing it would be useful for is creating a bot for keeping track of API changes.
|
||||
// This would also require quite a bit of refactoring however.
|
||||
auto apiResponse = sendRequest(apiEndpoint, request.headers.dup, requestBody);
|
||||
|
||||
auto responseBody = apiResponse.bodyReader.readAll();
|
||||
|
@ -323,7 +326,11 @@ HTTPClientResponse sendRequest(string endpoint, InetHeaderMap headers, ubyte[] r
|
|||
|
||||
void sendResponse(HTTPServerResponse response, HTTPClientResponse apiResponse, ubyte[] responseBody)
|
||||
{
|
||||
if("Transfer-Encoding" in apiResponse.headers) { apiResponse.headers.remove("Transfer-Encoding"); }
|
||||
//HACK:This is necessary because of something, but I don't remember what
|
||||
if("Transfer-Encoding" in apiResponse.headers)
|
||||
{
|
||||
apiResponse.headers.remove("Transfer-Encoding");
|
||||
}
|
||||
response.statusCode = apiResponse.statusCode;
|
||||
response.statusPhrase = apiResponse.statusPhrase;
|
||||
response.headers = apiResponse.headers.dup;
|
||||
|
|
|
@ -41,6 +41,7 @@ class GetMasterResponse : Response
|
|||
Nullable!Base64CSV masterCharacterMypageVoiceResourceGroup;
|
||||
Nullable!Base64CSV masterGuestCharacter;
|
||||
Nullable!Base64CSV masterCharacterLeaderSkill;
|
||||
Nullable!Base64CSV masterCharacterLeaderSkillDescription;
|
||||
Nullable!Base64CSV masterCharacterSkinNotExistVoice;
|
||||
Nullable!Base64CSV masterStage;
|
||||
Nullable!Base64CSV masterCampaignStaminaDungeon;
|
||||
|
@ -87,6 +88,7 @@ class GetMasterResponse : Response
|
|||
Nullable!Base64CSV masterStageConcept;
|
||||
Nullable!Base64CSV masterDungeonRecommendTotalPowerGroup;
|
||||
Nullable!Base64CSV masterCharacterSkin;
|
||||
Nullable!Base64CSV masterGardenPlantPot;
|
||||
Nullable!Base64CSV masterItemPurification;
|
||||
Nullable!Base64CSV masterStageTimeSchedule;
|
||||
Nullable!Base64CSV masterGardenFlowerItem;
|
||||
|
|
Loading…
Reference in New Issue