diff --git a/ansible/roles/ceph/templates/ceph.conf.j2 b/ansible/roles/ceph/templates/ceph.conf.j2
index a54d6dcb26..704bc8a663 100644
--- a/ansible/roles/ceph/templates/ceph.conf.j2
+++ b/ansible/roles/ceph/templates/ceph.conf.j2
@@ -47,5 +47,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 %}