We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae4fab4 commit 5fab03eCopy full SHA for 5fab03e
templates/dotnet/src/Appwrite/Client.cs.twig
@@ -269,13 +269,10 @@ namespace {{ spec.title | caseUcfirst }}
269
var response = await _http.SendAsync(request);
270
var code = (int)response.StatusCode;
271
272
- var warnings = response.Headers.GetValues("x-{{ spec.title | lower }}-warning");
273
- if (warnings != null)
+ IEnumerable<string> warnings = response.Headers.TryGetValues("x-{{ spec.title | lower }}-warning");
+ foreach (var warning in warnings)
274
{
275
- foreach (var warning in warnings.Split(';'))
276
- {
277
- Console.WriteLine("Warning: " + warning);
278
- }
+ Console.WriteLine("Warning: " + warning);
279
}
280
281
string contentType = string.Empty;
0 commit comments