diff --git a/ansible/roles/ceph/templates/ceph.conf.j2 b/ansible/roles/ceph/templates/ceph.conf.j2
index 118450ae32e9c359cdb915bd0c3d8e66239782e7..f33ff63023ed310b6160e0731b256fc2d58111b3 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 %}