aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoftworkz <softworkz@hotmail.com>2016-08-13 06:57:21 +0200
committerSoftworkz <softworkz@hotmail.com>2016-08-13 07:16:19 +0200
commit319dcda4beb5cde9cd858a33a9603f0cff54d831 (patch)
treed036a560d0fea6819238d0fc5ef8b9a8999805b7
parente0e6c98e43047caa3869dd8bf69204c9ee8f4d7e (diff)
Fix: ETag-Values MUST be quoted according to W3C spec
-rw-r--r--MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs
index c0a2a5eb3..194904320 100644
--- a/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs
+++ b/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs
@@ -275,7 +275,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
/// <returns>System.Object.</returns>
private object GetCachedResult(IRequest requestContext, IDictionary<string, string> responseHeaders, Guid cacheKey, string cacheKeyString, DateTime? lastDateModified, TimeSpan? cacheDuration, string contentType)
{
- responseHeaders["ETag"] = cacheKeyString;
+ responseHeaders["ETag"] = string.Format("\"{0}\"", cacheKeyString);
if (IsNotModified(requestContext, cacheKey, lastDateModified, cacheDuration))
{