diff --git a/nimutils/awsclient.nim b/nimutils/awsclient.nim index 37e383b..6ea134c 100644 --- a/nimutils/awsclient.nim +++ b/nimutils/awsclient.nim @@ -98,7 +98,7 @@ proc newAwsClient*(creds: AwsCredentials, region, let # TODO - use some kind of template and compile-time variable to put the correct kernel used to build the sdk in the UA? httpclient = createHttpClient( - userAgent = "nimaws-sdk/0.3.3; "&defUserAgent.replace(" ", "-").toLower&"; darwin/16.7.0", + userAgent = "nimaws-sdk/0.3.3; " & defUserAgent.replace(" ", "-").toLower() & "; darwin/16.7.0", ) scope = AwsScope(date: getAmzDateString(), region: region, service: service) diff --git a/nimutils/s3client.nim b/nimutils/s3client.nim index e6232d4..e28eb6f 100644 --- a/nimutils/s3client.nim +++ b/nimutils/s3client.nim @@ -29,8 +29,10 @@ proc newS3Client*(creds: AwsCredentials, region: string = defaultRegion, host: string = awsURI, timeoutMilliseconds = 1000): S3Client = let # TODO - use some kind of template and compile-time variable to put the correct kernel used to build the sdk in the UA? - httpclient = newHttpClient("nimaws-sdk/0.3.3; "&defUserAgent.replace(" ", - "-").toLower&"; darwin/16.7.0", timeout = timeoutMilliseconds) + httpclient = newHttpClient( + "nimaws-sdk/0.3.3; " & defUserAgent.replace(" ", "-").toLower() & "; darwin/16.7.0", + timeout = timeoutMilliseconds, + ) scope = AwsScope(date: getAmzDateString(), region: region, service: "s3") var diff --git a/nimutils/stsclient.nim b/nimutils/stsclient.nim index 8a1a033..8186654 100644 --- a/nimutils/stsclient.nim +++ b/nimutils/stsclient.nim @@ -14,8 +14,10 @@ proc newStsClient*(creds: AwsCredentials, timeoutMilliseconds = 1000): StsClient = let # TODO - use some kind of template and compile-time variable to put the correct kernel used to build the sdk in the UA? - httpclient = newHttpClient("nimaws-sdk/0.3.3; "&defUserAgent.replace(" ", "-").toLower&"; darwin/16.7.0", - timeout = timeoutMilliseconds) + httpclient = newHttpClient( + "nimaws-sdk/0.3.3; " & defUserAgent.replace(" ", "-").toLower() & "; darwin/16.7.0", + timeout = timeoutMilliseconds, + ) scope = AwsScope(date: getAmzDateString(), region: region, service: "sts") var