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.
2 parents f875c96 + e2c665d commit 23fae03Copy full SHA for 23fae03
templates/dotnet/src/Appwrite/Client.cs.twig
@@ -221,7 +221,6 @@ namespace {{ spec.title | caseUcfirst }}
221
.FirstOrDefault() ?? string.Empty;
222
223
var isJson = contentType.Contains("application/json");
224
- var isBytes = contentType.Contains("application/octet-stream");
225
226
if (code >= 400) {
227
var message = await response.Content.ReadAsStringAsync();
@@ -248,13 +247,9 @@ namespace {{ spec.title | caseUcfirst }}
248
247
249
return (dict as T)!;
250
}
251
- else if (isBytes)
252
- {
253
- return ((await response.Content.ReadAsByteArrayAsync()) as T)!;
254
- }
255
else
256
{
257
- return default!;
+ return ((await response.Content.ReadAsByteArrayAsync()) as T)!;
258
259
260
0 commit comments