We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1fdb759 + 36188bc commit 44d9df7Copy full SHA for 44d9df7
RedditSharp/RateLimitManager.cs
@@ -1,5 +1,6 @@
1
using System;
2
using System.Collections.Generic;
3
+using System.Globalization;
4
using System.Linq;
5
using System.Net.Http;
6
using System.Threading;
@@ -177,7 +178,7 @@ public async Task ReadHeadersAsync(HttpResponseMessage response)
177
178
}
179
if (headers.TryGetValues("X-Ratelimit-Remaining", out values))
180
{
- remaining = (int)double.Parse(values.First());
181
+ remaining = (int)double.Parse(values.First(), CultureInfo.InvariantCulture);
182
183
else
184
0 commit comments