aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-08-13 01:20:56 -0400
committerGitHub <noreply@github.com>2016-08-13 01:20:56 -0400
commit8a4faa37ae21ded36877d8fe2ac0179cde738f2f (patch)
tree408257fb576073d6b4f90ef9e0f57e1d1aff426d
parent5d919a12efb04120e63bd184eb2141db4c78f457 (diff)
parent319dcda4beb5cde9cd858a33a9603f0cff54d831 (diff)
Merge pull request #2050 from softworkz/ETagHeader
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))
{