diff --git a/Runtime/Response.cs b/Runtime/Response.cs index 5b33b55..a5cca9d 100644 --- a/Runtime/Response.cs +++ b/Runtime/Response.cs @@ -220,7 +220,7 @@ public string ToString(string methodName) if (!string.IsNullOrWhiteSpace(Body)) { - if (Parameters.ServerSentEvents.Count > 0) + if (Parameters is { ServerSentEvents: { Count: > 0 } }) { var array = new JArray(); diff --git a/package.json b/package.json index 94b2c67..5cf2aee 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "displayName": "Utilities.Rest", "description": "This package contains useful RESTful utilities for the Unity Game Engine.", "keywords": [], - "version": "3.2.4", + "version": "3.2.5", "unity": "2021.3", "documentationUrl": "https://github.com/RageAgainstThePixel/com.utilities.rest#documentation", "changelogUrl": "https://github.com/RageAgainstThePixel/com.utilities.rest/releases",