Commit 7eb7c5a0 authored by Stan Hu's avatar Stan Hu

Enable LFS chunked encoding by default

This has been enabled on GitLab.com with no noticeable issues. This
feature tells the client that they can use `Transfer-Encoding: chunked`,
which may help avoid request buffering and deal and help with large
uploads.

Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/285581
parent de9bb3bc
...@@ -105,7 +105,7 @@ module Repositories ...@@ -105,7 +105,7 @@ module Repositories
'Content-Type': LFS_TRANSFER_CONTENT_TYPE 'Content-Type': LFS_TRANSFER_CONTENT_TYPE
} }
if Feature.enabled?(:lfs_chunked_encoding, project) if Feature.enabled?(:lfs_chunked_encoding, project, default_enabled: true)
headers['Transfer-Encoding'] = 'chunked' headers['Transfer-Encoding'] = 'chunked'
end end
......
---
title: Enable LFS chunked encoding by default
merge_request: 49649
author:
type: changed
--- ---
name: lfs_chunked_encoding name: lfs_chunked_encoding
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/jobs/864043673 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/48269
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/285581 rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/285581
milestone: '13.6' milestone: '13.6'
type: development type: development
group: group:
default_enabled: false default_enabled: true
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment