aboutsummaryrefslogtreecommitdiff
path: root/Timeline
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
commit0bbc5766119d9241473c737b5626e6b455ebba2b (patch)
tree4e83908948274b6a644ac208188373da0f8fe9ff /Timeline
parent99120ebedea6b8a9400901886a3f828d3466633b (diff)
downloadtimeline-0bbc5766119d9241473c737b5626e6b455ebba2b.tar.gz
timeline-0bbc5766119d9241473c737b5626e6b455ebba2b.tar.bz2
timeline-0bbc5766119d9241473c737b5626e6b455ebba2b.zip
Fix a bug.
Diffstat (limited to 'Timeline')
-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);