1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-03-17 20:17:48 +02:00

use UTF8 to encode url to base64 (#953)

This commit is contained in:
Saad Shaikh 2022-08-26 17:08:27 +05:30 committed by GitHub
parent 922c730d55
commit 6d92391f12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,6 +63,6 @@ namespace ImgProxy.Examples
=> Convert.ToBase64String(stream).TrimEnd('=').Replace('+', '-').Replace('/', '_');
static string EncodeBase64URLSafeString(this string str)
=> EncodeBase64URLSafeString(Encoding.ASCII.GetBytes(str));
=> EncodeBase64URLSafeString(Encoding.UTF8.GetBytes(str));
}
}