aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Controllers
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-08-27 13:01:49 +0800
committer杨宇千 <crupest@outlook.com>2019-08-27 13:01:49 +0800
commit1013af20669029f34a92a9c2b36baf962a480a6e (patch)
tree4e83908948274b6a644ac208188373da0f8fe9ff /Timeline/Controllers
parent8f658ff4e6dd6553bcebc8647cf2e8ee6d4aa723 (diff)
downloadtimeline-1013af20669029f34a92a9c2b36baf962a480a6e.tar.gz
timeline-1013af20669029f34a92a9c2b36baf962a480a6e.tar.bz2
timeline-1013af20669029f34a92a9c2b36baf962a480a6e.zip
Fix a bug.
Diffstat (limited to 'Timeline/Controllers')
-rw-r--r--Timeline/Controllers/UserAvatarController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Timeline/Controllers/UserAvatarController.cs b/Timeline/Controllers/UserAvatarController.cs
index d072bff2..96b43bdb 100644
--- a/Timeline/Controllers/UserAvatarController.cs
+++ b/Timeline/Controllers/UserAvatarController.cs
@@ -77,7 +77,7 @@ namespace Timeline.Controllers
if (!EntityTagHeaderValue.TryParseStrictList(value, out var eTagList))
return BadRequest(CommonResponse.BadIfNonMatch());
- if (eTagList.First(e => e.Equals(eTag)) != null)
+ if (eTagList.FirstOrDefault(e => e.Equals(eTag)) != null)
{
Response.Headers.Add(CacheControlHeaderKey, CacheControlHeaderValue);
Response.Headers.Add("ETag", eTagValue);