Log the request

pull/3049/head
tidusjar 6 years ago
parent e8fafa2f59
commit da745e663c

@ -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…
Cancel
Save