aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-04-07 20:46:46 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-04-07 20:46:46 +0300
commitc713abc05138620d0b32a8f4648f4924ae101502 (patch)
tree33d594f41c62c8353f570e5691293ba8e3fc1b35
parentbc3d341d0390a7367a9f7b901dcc3cb93ac1247c (diff)
downloadDevHive-c713abc05138620d0b32a8f4648f4924ae101502.tar
DevHive-c713abc05138620d0b32a8f4648f4924ae101502.tar.gz
DevHive-c713abc05138620d0b32a8f4648f4924ae101502.zip
Fixed profile picture get method requiring authorization string in header
-rw-r--r--src/Web/DevHive.Web/Controllers/ProfilePictureController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Web/DevHive.Web/Controllers/ProfilePictureController.cs b/src/Web/DevHive.Web/Controllers/ProfilePictureController.cs
index 9a76e2c..8474df5 100644
--- a/src/Web/DevHive.Web/Controllers/ProfilePictureController.cs
+++ b/src/Web/DevHive.Web/Controllers/ProfilePictureController.cs
@@ -36,7 +36,7 @@ namespace DevHive.Web.Controllers
/// <returns>The URL of the profile picture</returns>
[HttpGet]
[AllowAnonymous]
- public async Task<IActionResult> ReadProfilePicture(Guid profilePictureId, [FromHeader] string authorization)
+ public async Task<IActionResult> ReadProfilePicture(Guid profilePictureId)
{
string profilePicURL = await this._profilePictureService.GetProfilePictureById(profilePictureId);
return new OkObjectResult(new { ProfilePictureURL = profilePicURL} );