diff options
| author | Softworkz <softworkz@hotmail.com> | 2016-08-13 06:57:21 +0200 |
|---|---|---|
| committer | Softworkz <softworkz@hotmail.com> | 2016-08-13 07:16:19 +0200 |
| commit | 319dcda4beb5cde9cd858a33a9603f0cff54d831 (patch) | |
| tree | d036a560d0fea6819238d0fc5ef8b9a8999805b7 /MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs | |
| parent | e0e6c98e43047caa3869dd8bf69204c9ee8f4d7e (diff) | |
Fix: ETag-Values MUST be quoted according to W3C spec
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs | 2 |
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)) { |
