Permalink
Browse files

Thread.CurrentThread.CurrentCulture.Name is unsupported by .net core

  • Loading branch information...
Copyleaks committed Aug 20, 2018
1 parent bdfaa78 commit 02bd634d97236b03d66842b4bb995692a0592054
Showing with 1 addition and 2 deletions.
  1. +1 −2 CopyleaksAPI/Extentions/HttpClientHelper.cs
@@ -49,8 +49,7 @@ public static void SetCopyleaksClient(this HttpClient client, string contentType
// The Copyleaks SDK allows language localization for the informative and error messages.
// To customize the language, change the value of "CurrentThread.CurrentCulture" to the wanted language code. The changes you made will affect the next
// requests to Copyleks cloud, with English ("en-US") being the default language if the requested language is not supported.
client.DefaultRequestHeaders.AcceptLanguage.Add(new StringWithQualityHeaderValue(Thread.CurrentThread.CurrentCulture.Name));
//client.DefaultRequestHeaders.AcceptLanguage.Add(new StringWithQualityHeaderValue(Thread.CurrentThread.CurrentCulture.Name));
}
public static void SetCopyleaksClient(this HttpClient client, string contentType, LoginToken SecurityToken)
{

0 comments on commit 02bd634

Please sign in to comment.