Skip to content

Commit

Permalink
Parameter issue in Signed Policy URL Generator
Browse files Browse the repository at this point in the history
  • Loading branch information
umesh257159 committed Feb 17, 2023
1 parent 1b163bd commit ba8cb36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/signed_policy_url_generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public virtual string generate(long url_expire
string policy_json = new JavaScriptSerializer().Serialize(policy_dict);

var policy_base64 = System.Convert.ToBase64String(Encoding.UTF8.GetBytes(policy_json)).TrimEnd(padding).Replace('+', '-').Replace('/', '_');
//Check if paramete present in url
//Check if parameter present in url
if (base_url.Contains("?")) { base_url = base_url + "&"; }
else { base_url = base_url + "?"; }
var stream_url = string.Format("{0}?policy={1}", base_url, policy_base64);
Expand Down

0 comments on commit ba8cb36

Please sign in to comment.