File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments