Skip to content

Commit dac56b2

Browse files
author
KevinVenclovas
committed
fixed rate limit issue
1 parent a62774a commit dac56b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/FikaAmazonAPI/Services/RequestService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using RestSharp;
1010
using System;
1111
using System.Collections.Generic;
12+
using System.Globalization;
1213
using System.Linq;
1314
using System.Net;
1415
using System.Threading.Tasks;
@@ -164,7 +165,7 @@ private void SleepForRateLimit(IList<RestSharp.Parameter> headers, RateLimitType
164165
if (limitHeader != null)
165166
{
166167
var RateLimitValue = limitHeader.Value.ToString();
167-
decimal.TryParse(RateLimitValue, out rate);
168+
decimal.TryParse(RateLimitValue, NumberStyles.Any, CultureInfo.InvariantCulture, out rate);
168169
}
169170

170171
if (AmazonCredential.IsActiveLimitRate)

0 commit comments

Comments
 (0)