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 | 1013af20669029f34a92a9c2b36baf962a480a6e (patch) | |
tree | 4e83908948274b6a644ac208188373da0f8fe9ff /Timeline/Controllers/UserAvatarController.cs | |
parent | 8f658ff4e6dd6553bcebc8647cf2e8ee6d4aa723 (diff) | |
download | timeline-1013af20669029f34a92a9c2b36baf962a480a6e.tar.gz timeline-1013af20669029f34a92a9c2b36baf962a480a6e.tar.bz2 timeline-1013af20669029f34a92a9c2b36baf962a480a6e.zip |
Fix a bug.
Diffstat (limited to 'Timeline/Controllers/UserAvatarController.cs')
-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);
|