diff --git a/src/Flurl.Http/Configuration/DefaultJsonSerializer.cs b/src/Flurl.Http/Configuration/DefaultJsonSerializer.cs index 580217cd..a1e006bc 100644 --- a/src/Flurl.Http/Configuration/DefaultJsonSerializer.cs +++ b/src/Flurl.Http/Configuration/DefaultJsonSerializer.cs @@ -35,6 +35,9 @@ public DefaultJsonSerializer(JsonSerializerOptions options = null) { /// Deserializes the specified stream to an object of type T. /// /// The stream to deserialize. - public T Deserialize(Stream stream) => stream.Length == 0 ? default : JsonSerializer.Deserialize(stream, _options); + public T Deserialize(Stream stream) + { + return JsonSerializer.Deserialize(stream, _options); + } } -} \ No newline at end of file +}