React to StringSegment change

This commit is contained in:
Chris R 2017-05-19 07:53:50 -07:00
parent df36d02311
commit 9c5870b1b4
1 changed files with 1 additions and 1 deletions

View File

@ -524,7 +524,7 @@ namespace Microsoft.AspNetCore.Server.HttpSys
// We require 'public' and 's-max-age' or 'max-age' or the Expires header.
CacheControlHeaderValue cacheControl;
if (CacheControlHeaderValue.TryParse(cacheControlHeader, out cacheControl) && cacheControl.Public)
if (CacheControlHeaderValue.TryParse(cacheControlHeader.ToString(), out cacheControl) && cacheControl.Public)
{
if (cacheControl.SharedMaxAge.HasValue)
{