diff --git a/ansible/roles/ceph/templates/ceph.conf.j2 b/ansible/roles/ceph/templates/ceph.conf.j2
index 118450ae32..f33ff63023 100644
--- a/ansible/roles/ceph/templates/ceph.conf.j2
+++ b/ansible/roles/ceph/templates/ceph.conf.j2
@@ -46,5 +46,6 @@ log file = /var/log/kolla/ceph/client.radosgw.gateway.log
 {% if ceph_rgw_compatibility | bool %}
 rgw_swift_url_prefix = "/"
 rgw_enable_apis = swift,swift_auth,admin
+rgw_swift_enforce_content_length = true
 {% endif %}
 {% endif %}