Skip to content

Commit

Permalink
New Unity version numbers broke binary VFS system to setup request co…
Browse files Browse the repository at this point in the history
…ntent type.
  • Loading branch information
Mike-devs committed Sep 7, 2018
1 parent cb306d2 commit 88d7b9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CotcSdk/HighLevel/GamerVfs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

Expand Down

0 comments on commit 88d7b9d

Please sign in to comment.