mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
Log the request
This commit is contained in:
parent
e8fafa2f59
commit
da745e663c
1 changed files with 2 additions and 1 deletions
|
@ -134,11 +134,12 @@ namespace Ombi.Api
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void AddHeadersBody(Request request, HttpRequestMessage httpRequestMessage)
|
private void AddHeadersBody(Request request, HttpRequestMessage httpRequestMessage)
|
||||||
{
|
{
|
||||||
// Add the Json Body
|
// Add the Json Body
|
||||||
if (request.JsonBody != null)
|
if (request.JsonBody != null)
|
||||||
{
|
{
|
||||||
|
LogDebugContent("REQUEST: " + request.JsonBody);
|
||||||
httpRequestMessage.Content = new JsonContent(request.JsonBody);
|
httpRequestMessage.Content = new JsonContent(request.JsonBody);
|
||||||
httpRequestMessage.Content.Headers.ContentType =
|
httpRequestMessage.Content.Headers.ContentType =
|
||||||
new MediaTypeHeaderValue("application/json"); // Emby connect fails if we have the charset in the header
|
new MediaTypeHeaderValue("application/json"); // Emby connect fails if we have the charset in the header
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue