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

Merge pull request #7250 from ahmyi/patch-1

Content-length for Repository Archive
parents 8d106bed 4d051e98
No related branches found
No related tags found
No related merge requests found
Loading
@@ -22,6 +22,7 @@ class Projects::RepositoriesController < Projects::ApplicationController
Loading
@@ -22,6 +22,7 @@ class Projects::RepositoriesController < Projects::ApplicationController
   
if file_path if file_path
# Send file to user # Send file to user
response.headers["Content-Length"] = File.Open(file_path).size.to_s
send_file file_path send_file file_path
else else
render_404 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