aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/HttpServer/ResponseFilter.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2020-04-19 15:18:28 +0200
committerBond_009 <bond.009@outlook.com>2020-04-20 10:18:12 +0200
commit7f4a229cd2fee89fdd8329c9c9f907e381d45c46 (patch)
treece60fe469b635c7c3369964d9783affebc483639 /Emby.Server.Implementations/HttpServer/ResponseFilter.cs
parent3142c9b9901cc653eb758ba7d47edbbe2190f83d (diff)
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);