diff --git a/main.go b/main.go
index 34b23dbac6cff38fe5dff30fd5a8213a97d234f7..a794ef8a67dcb846b6bf27b3cb91bea91628c07f 100644
--- a/main.go
+++ b/main.go
@@ -486,6 +486,9 @@ func requestHandler(ctx *fasthttp.RequestCtx) {
 		} else {
 			ctx.SetContentType("application/octet-stream")
 		}
+		if ctx.QueryArgs().Has("download") {
+			ctx.Response.Header.Set("Content-Disposition", fmt.Sprintf(`attachment; filename="%s"`, key))
+		}
 		ctx.Response.Header.Set("ETag", fmt.Sprintf(`"%s"`, *object.SHA256Hash))
 		fasthttp.ServeFileUncompressed(ctx, fPath)