mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
webclient: also show response if the first char is a letter
This commit is contained in:
@@ -195,7 +195,7 @@ namespace Jackett.Common.Utils.Clients
|
|||||||
{
|
{
|
||||||
bodySize = result.ContentBytes.Length;
|
bodySize = result.ContentBytes.Length;
|
||||||
var contentString = result.ContentString.Trim();
|
var contentString = result.ContentString.Trim();
|
||||||
if (contentString.StartsWith("<") || contentString.StartsWith("{") || contentString.StartsWith("["))
|
if (contentString.StartsWith("<") || contentString.StartsWith("{") || contentString.StartsWith("[") || Char.IsLetter(contentString[0]))
|
||||||
body = "\n" + contentString;
|
body = "\n" + contentString;
|
||||||
else
|
else
|
||||||
body = " <BINARY>";
|
body = " <BINARY>";
|
||||||
|
Reference in New Issue
Block a user