From 88d7b9dfa5ae61e4984646662aacb987c9c9d546 Mon Sep 17 00:00:00 2001 From: Michael EL BAKI Date: Fri, 7 Sep 2018 15:44:13 +0200 Subject: [PATCH] New Unity version numbers broke binary VFS system to setup request content type. --- CotcSdk/HighLevel/GamerVfs.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CotcSdk/HighLevel/GamerVfs.cs b/CotcSdk/HighLevel/GamerVfs.cs index 1e8789c6..2b74c217 100755 --- a/CotcSdk/HighLevel/GamerVfs.cs +++ b/CotcSdk/HighLevel/GamerVfs.cs @@ -17,13 +17,14 @@ public sealed class GamerVfs { static GamerVfs() { RuntimePlatform platform = Application.platform; + string version = Application.unityVersion; // "Nice" system to send the correct Content-Type to S3 for upload, since Unity uses different ones // based on the platform and version. We must make sure to send the same one since the signature // uses the ContentType. if(platform == RuntimePlatform.Android) s3ContentType = "application/x-www-form-urlencoded"; - if (Application.unityVersion.CompareTo("5.1.1") == 1) + if (version.Contains("201") || (version.CompareTo("5.1.1") == 1)) s3ContentType = "application/octet-stream"; }