mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -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
|
||||
if (request.JsonBody != null)
|
||||
{
|
||||
LogDebugContent("REQUEST: " + request.JsonBody);
|
||||
httpRequestMessage.Content = new JsonContent(request.JsonBody);
|
||||
httpRequestMessage.Content.Headers.ContentType =
|
||||
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