Skip to content

Commit 23dd3cf

Browse files
committed
Merge branch 'master' into feature-axa-with-rest-sharp
2 parents 54c449c + 4d51cd0 commit 23dd3cf

File tree

1 file changed

+13
-8
lines changed
  • cybersource-rest-client-netstandard/cybersource-rest-client-netstandard/generator/cybersource-csharp-template

1 file changed

+13
-8
lines changed

cybersource-rest-client-netstandard/cybersource-rest-client-netstandard/generator/cybersource-csharp-template/ApiClient.mustache

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -612,14 +612,19 @@ namespace {{packageName}}.Client
612612
}
613613
}
614614

615-
if (logUtility.IsMaskingEnabled(logger))
616-
{
617-
logger.Debug($"HTTP Request Headers :\n{logUtility.MaskSensitiveData(headerPrintOutput.ToString())}");
618-
}
619-
else
620-
{
621-
logger.Debug($"HTTP Request Headers :\n{headerPrintOutput.ToString()}");
622-
}
615+
// set timeout
616+
RestClient.Timeout = Configuration.Timeout;
617+
// set user agent
618+
RestClient.UserAgent = Configuration.UserAgent;
619+
620+
if (logUtility.IsMaskingEnabled(logger))
621+
{
622+
logger.Debug($"HTTP Request Headers :\n{logUtility.MaskSensitiveData(headerPrintOutput.ToString())}");
623+
}
624+
else
625+
{
626+
logger.Debug($"HTTP Request Headers :\n{headerPrintOutput.ToString()}");
627+
}
623628

624629
InterceptRequest(request);
625630
var response = await RestClient.Execute{{^netStandard}}Async{{/netStandard}}(request);

0 commit comments

Comments
 (0)