Skip to content

Commit

Permalink
Update api_handlers.go
Browse files Browse the repository at this point in the history
  • Loading branch information
waveyboym authored Aug 21, 2024
1 parent bf7acef commit a6ce937
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions occupi-backend/pkg/handlers/api_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -891,8 +891,8 @@ func DownloadProfileImage(ctx *gin.Context, appsession *models.AppSession) {
}

// set the response headers
ctx.Header("Content-Disposition", "attachment; filename="+imageData.FileName)
ctx.Header("/Content-Type", "application/octet-stream")
ctx.Header("Content-Disposition", "inline; filename="+imageData.FileName)
ctx.Header("Content-Type", "image/jepg")
switch request.Quality {
case constants.ThumbnailRes:
ctx.Data(http.StatusOK, "application/octet-stream", imageData.Thumbnail)
Expand Down

0 comments on commit a6ce937

Please sign in to comment.