Skip to content

Commit 0d1172b

Browse files
authored
Update data-collector-api.md
------- cc: @bwren
1 parent fca82e0 commit 0d1172b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

articles/azure-monitor/logs/data-collector-api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ namespace OIAPIExample
364364
client.DefaultRequestHeaders.Add("x-ms-date", date);
365365
client.DefaultRequestHeaders.Add("time-generated-field", TimeStampField);
366366

367+
// If charset=utf-8 is part of the content-type header, the API call may return forbidden.
367368
System.Net.Http.HttpContent httpContent = new StringContent(json, Encoding.UTF8);
368369
httpContent.Headers.ContentType = new MediaTypeHeaderValue("application/json");
369370
Task<System.Net.Http.HttpResponseMessage> response = client.PostAsync(new Uri(url), httpContent);

0 commit comments

Comments
 (0)