Skip to content
Snippets Groups Projects
Verified Commit 593e262e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix 500 on repo archive download

parent 85a15b0e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -22,7 +22,7 @@ class Projects::RepositoriesController < Projects::ApplicationController
 
if file_path
# Send file to user
response.headers["Content-Length"] = File.Open(file_path).size.to_s
response.headers["Content-Length"] = File.open(file_path).size.to_s
send_file file_path
else
render_404
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment