Skip to content

Commit 54e0cb9

Browse files
committed
Encoding space character using EscapeUriString Method
1 parent 1233ddc commit 54e0cb9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Client/ApiClient.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ private RestRequest PrepareRequest(
152152

153153
if (postBody == null)
154154
{
155-
CallAuthHdrs(method.ToString(), path);
155+
CallAuthenticationHeaders(method.ToString(), path);
156156
}
157157
else
158158
{
159-
CallAuthHdrs(method.ToString(), path, postBody.ToString());
159+
CallAuthenticationHeaders(method.ToString(), path, postBody.ToString());
160160
}
161161

162162
foreach (var param in Configuration.DefaultHeader)
@@ -546,10 +546,12 @@ public static string SanitizeFilename(string filename)
546546
}
547547
}
548548

549-
/// Calling the authentication headers
549+
/// Calling the Authentication SDK to Generate Request Headers necessary for Authentication
550550
///
551-
public void CallAuthHdrs(string requestType, string requestTarget, string requestJsonData = null)
551+
public void CallAuthenticationHeaders(string requestType, string requestTarget, string requestJsonData = null)
552552
{
553+
requestTarget = Uri.EscapeUriString(requestTarget);
554+
553555
var merchantConfig = Configuration.MerchantConfigDictionaryObj != null
554556
? new MerchantConfig(Configuration.MerchantConfigDictionaryObj)
555557
: new MerchantConfig();

0 commit comments

Comments
 (0)