diff options
author | 杨宇千 <crupest@outlook.com> | 2019-08-27 13:01:49 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-08-27 13:01:49 +0800 |
commit | 0bbc5766119d9241473c737b5626e6b455ebba2b (patch) | |
tree | 4e83908948274b6a644ac208188373da0f8fe9ff /Timeline | |
parent | 99120ebedea6b8a9400901886a3f828d3466633b (diff) | |
download | timeline-0bbc5766119d9241473c737b5626e6b455ebba2b.tar.gz timeline-0bbc5766119d9241473c737b5626e6b455ebba2b.tar.bz2 timeline-0bbc5766119d9241473c737b5626e6b455ebba2b.zip |
Fix a bug.
Diffstat (limited to 'Timeline')
-rw-r--r-- | Timeline/Controllers/UserAvatarController.cs | 2 |
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);
|