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 | b5376f71157f68f06aa04bde79389f9ab291d84a (patch) | |
tree | 369d3a89588e752983a26baff9c225ce43ad3ef8 /BackEnd/Timeline/Controllers | |
parent | d1317bd9fe08a933a13df88ba692343cde549123 (diff) | |
download | timeline-b5376f71157f68f06aa04bde79389f9ab291d84a.tar.gz timeline-b5376f71157f68f06aa04bde79389f9ab291d84a.tar.bz2 timeline-b5376f71157f68f06aa04bde79389f9ab291d84a.zip |
...
Diffstat (limited to 'BackEnd/Timeline/Controllers')
-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();
}
|