Skip to content

Commit

Permalink
chore: do not download file on /moodle/preview
Browse files Browse the repository at this point in the history
  • Loading branch information
dantetemplar committed Jul 3, 2024
1 parent f5a01cb commit d6f91c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/moodle/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async def preview_moodle(course_id: int, module_id: int, filename: str):
return StreamingResponse(
response,
media_type="application/octet-stream",
headers={"Content-Disposition": f"attachment; filename={filename}"},
headers={"Content-Disposition": f"inline; filename={filename}"},
)


Expand Down

0 comments on commit d6f91c5

Please sign in to comment.