aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/HttpServer/ResponseFilter.cs
diff options
context:
space:
mode:
authorVasily <JustAMan@users.noreply.github.com>2020-04-29 12:17:01 +0300
committerGitHub <noreply@github.com>2020-04-29 12:17:01 +0300
commit5922c35d692b50817ccbc2acd4e521aab11dd230 (patch)
tree92f0a7a72bd96d4b4e153f11219379b70afed5aa /Emby.Server.Implementations/HttpServer/ResponseFilter.cs
parent8607b6a9975b2738886ecc4c799f0663b2c1bb24 (diff)
parentc430a7ed8faa40788c32b89852310981b7c1cf83 (diff)
Merge pull request #2920 from Bond-009/tests2
Add some simple tests
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/ResponseFilter.cs')
-rw-r--r--Emby.Server.Implementations/HttpServer/ResponseFilter.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/HttpServer/ResponseFilter.cs b/Emby.Server.Implementations/HttpServer/ResponseFilter.cs
index 5e0466629..4089aa578 100644
--- a/Emby.Server.Implementations/HttpServer/ResponseFilter.cs
+++ b/Emby.Server.Implementations/HttpServer/ResponseFilter.cs
@@ -82,6 +82,10 @@ namespace Emby.Server.Implementations.HttpServer
{
return null;
}
+ else if (inString.Length == 0)
+ {
+ return inString;
+ }
var newString = new StringBuilder(inString.Length);