Skip to content

Commit 55b11a6

Browse files
authored
futher HTTPHeaderDate fix (#781)
- pass through HTTPHeaderDate in JToken case in BaseAPI.MakeJsonRequestFullAsync<T>()
1 parent 425f2db commit 55b11a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ExchangeSharp/API/Common/BaseAPI.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ public void LoadAPIKeysUnsecure(string publicApiKey, string privateApiKey, strin
528528
T jsonResult = JsonConvert.DeserializeObject<T>(result.Response, SerializerSettings);
529529
if (jsonResult is JToken token)
530530
{
531-
return new IAPIRequestMaker.RequestResult<T>() { Response = (T)(object)CheckJsonResponse(token) };
531+
return new IAPIRequestMaker.RequestResult<T>() { Response = (T)(object)CheckJsonResponse(token), HTTPHeaderDate = result.HTTPHeaderDate };
532532
}
533533
return new IAPIRequestMaker.RequestResult<T>() { Response = jsonResult, HTTPHeaderDate = result.HTTPHeaderDate };
534534
}

0 commit comments

Comments
 (0)