File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed
generator/cybersource-csharp-template Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -609,14 +609,19 @@ namespace {{packageName}}.Client
609609 }
610610 }
611611
612- if (logUtility.IsMaskingEnabled(logger))
613- {
614- logger.Debug($" HTTP Request Headers :\n {logUtility.MaskSensitiveData(headerPrintOutput.ToString())}" );
615- }
616- else
617- {
618- logger.Debug($" HTTP Request Headers :\n {headerPrintOutput.ToString()}" );
619- }
612+ // set timeout
613+ RestClient.Timeout = Configuration.Timeout;
614+ // set user agent
615+ RestClient.UserAgent = Configuration.UserAgent;
616+
617+ if (logUtility.IsMaskingEnabled(logger))
618+ {
619+ logger.Debug($" HTTP Request Headers :\n {logUtility.MaskSensitiveData(headerPrintOutput.ToString())}" );
620+ }
621+ else
622+ {
623+ logger.Debug($" HTTP Request Headers :\n {headerPrintOutput.ToString()}" );
624+ }
620625
621626 InterceptRequest(request);
622627 var response = await RestClient.Execute{ {^netStandard} }TaskAsync{ {/netStandard} }(request);
You can’t perform that action at this time.
0 commit comments