mirror of
https://github.com/Jackett/Jackett
synced 2025-02-25 07:32:38 +00:00
Fix charset setting for JsonContent
This commit is contained in:
parent
0f7ff3fb06
commit
c43ff9ff49
1 changed files with 1 additions and 1 deletions
|
@ -17,12 +17,12 @@ namespace Jackett.Utils
|
|||
public JsonContent(object value)
|
||||
: this(value, Encoding.UTF8)
|
||||
{
|
||||
Headers.ContentType.CharSet = "utf-8";
|
||||
}
|
||||
|
||||
public JsonContent(object value, Encoding encoding)
|
||||
: base(JsonConvert.SerializeObject(value, Formatting.Indented, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore }), encoding, "application/json")
|
||||
{
|
||||
this.Headers.ContentType.CharSet = "utf-8";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue