Skip to content

Commit

Permalink
com.utilities.rest 3.2.4 (#88)
Browse files Browse the repository at this point in the history
- updated GUID generator to always use utf8 encoder
  • Loading branch information
StephenHodgson authored Aug 29, 2024
1 parent da83dd5 commit 2ad52bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Runtime/DiskDownloadCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal class DiskDownloadCache : IDownloadCache
private static Guid GenerateGuid(string @string)
{
using MD5 md5 = MD5.Create();
return new Guid(md5.ComputeHash(Encoding.Default.GetBytes(@string)));
return new Guid(md5.ComputeHash(Encoding.UTF8.GetBytes(@string)));
}

/// <inheritdoc />
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Utilities.Rest",
"description": "This package contains useful RESTful utilities for the Unity Game Engine.",
"keywords": [],
"version": "3.2.3",
"version": "3.2.4",
"unity": "2021.3",
"documentationUrl": "https://github.com/RageAgainstThePixel/com.utilities.rest#documentation",
"changelogUrl": "https://github.com/RageAgainstThePixel/com.utilities.rest/releases",
Expand Down

0 comments on commit 2ad52bc

Please sign in to comment.