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 5fab03e commit ea32b61Copy full SHA for ea32b61
templates/dotnet/src/Appwrite/Client.cs.twig
@@ -269,10 +269,13 @@ namespace {{ spec.title | caseUcfirst }}
269
var response = await _http.SendAsync(request);
270
var code = (int)response.StatusCode;
271
272
- IEnumerable<string> warnings = response.Headers.TryGetValues("x-{{ spec.title | lower }}-warning");
273
- foreach (var warning in warnings)
+ IEnumerable<string>? warnings = response.Headers.TryGetValues("x-{{ spec.title | lower }}-warning");
+ if (warnings != null)
274
{
275
- Console.WriteLine("Warning: " + warning);
+ foreach (var warning in warnings)
276
+ {
277
+ Console.WriteLine("Warning: " + warning);
278
+ }
279
}
280
281
string contentType = string.Empty;
0 commit comments