aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Controllers/UserAvatarController.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-01-30 23:49:02 +0800
committercrupest <crupest@outlook.com>2020-01-30 23:49:02 +0800
commit5aaa4f95e6bdd46e6740c1ecbbd46bdf415eedd2 (patch)
tree70ddc26cf29bdf4b19e9a746cac6017845e009fc /Timeline/Controllers/UserAvatarController.cs
parentd988669de355df12d3be3c658e8617c275fe70dd (diff)
downloadtimeline-5aaa4f95e6bdd46e6740c1ecbbd46bdf415eedd2.tar.gz
timeline-5aaa4f95e6bdd46e6740c1ecbbd46bdf415eedd2.tar.bz2
timeline-5aaa4f95e6bdd46e6740c1ecbbd46bdf415eedd2.zip
Finish reafctor, TODO: Database migration.
Diffstat (limited to 'Timeline/Controllers/UserAvatarController.cs')
-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 ab0ad8e7..2dd279a8 100644
--- a/Timeline/Controllers/UserAvatarController.cs
+++ b/Timeline/Controllers/UserAvatarController.cs
@@ -78,7 +78,7 @@ namespace Timeline.Controllers
[HttpPut("users/{username}/avatar")]
[Authorize]
- [RequireContentLength]
+ [RequireContentType, RequireContentLength]
[Consumes("image/png", "image/jpeg", "image/gif", "image/webp")]
public async Task<IActionResult> Put([FromRoute][Username] string username)
{