Skip to content

Commit b510cdc

Browse files
committed
Modifying request file information
1 parent d990046 commit b510cdc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

TrackingMoreAPI/src/Request.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ public string MakeRequest(string path, HttpMethod method, object requestData = n
7676
_url = _url + "?" + queryString;
7777
request.RequestUri = new Uri(_url);
7878
}else{
79-
string jsonData = JsonConvert.SerializeObject(requestData);
79+
string jsonData = JsonConvert.SerializeObject(requestData, Formatting.Indented, new JsonSerializerSettings {
80+
NullValueHandling = NullValueHandling.Ignore
81+
});
8082
var jsonContent = new StringContent(jsonData, Encoding.UTF8, "application/json");
8183
request.Content = jsonContent;
8284
}

0 commit comments

Comments
 (0)