diff options
author | crupest <crupest@outlook.com> | 2021-02-11 22:21:12 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-02-11 22:21:12 +0800 |
commit | 410032dbbc69e161ace03d68fea1934269c984ba (patch) | |
tree | d23f6b1e00a7002d59f4265b9e94306a33fd9991 /BackEnd/Timeline/Controllers/UserAvatarController.cs | |
parent | 840927cc6fe826f25de165da84876e8e676106a8 (diff) | |
download | timeline-410032dbbc69e161ace03d68fea1934269c984ba.tar.gz timeline-410032dbbc69e161ace03d68fea1934269c984ba.tar.bz2 timeline-410032dbbc69e161ace03d68fea1934269c984ba.zip |
...
Diffstat (limited to 'BackEnd/Timeline/Controllers/UserAvatarController.cs')
-rw-r--r-- | BackEnd/Timeline/Controllers/UserAvatarController.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/BackEnd/Timeline/Controllers/UserAvatarController.cs b/BackEnd/Timeline/Controllers/UserAvatarController.cs index 8ac2d21a..180d1f9b 100644 --- a/BackEnd/Timeline/Controllers/UserAvatarController.cs +++ b/BackEnd/Timeline/Controllers/UserAvatarController.cs @@ -102,12 +102,12 @@ namespace Timeline.Controllers try
{
- var etag = await _service.SetAvatar(id, body);
+ var digest = await _service.SetAvatar(id, body);
_logger.LogInformation(Log.Format(LogPutSuccess,
("Username", username), ("Mime Type", Request.ContentType)));
- Response.Headers.Append("ETag", new EntityTagHeaderValue($"\"{etag}\"").ToString());
+ Response.Headers.Append("ETag", new EntityTagHeaderValue($"\"{digest.ETag}\"").ToString());
return Ok();
}
|