From 336e59d232aabaed3ae35da8d8b49c523a4d3a92 Mon Sep 17 00:00:00 2001 From: "Matthieu \"Ezveus\" Ciappara" Date: Fri, 19 Apr 2024 10:55:18 +0200 Subject: [PATCH] Remove Content-Length computing Modern versions of HTTPI already do this. --- lib/savon/operation.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/savon/operation.rb b/lib/savon/operation.rb index 00e40d87..506e627a 100644 --- a/lib/savon/operation.rb +++ b/lib/savon/operation.rb @@ -109,10 +109,6 @@ def build_request(builder) request.headers["MIME-Version"] = "1.0" end - # TODO: could HTTPI do this automatically in case the header - # was not specified manually? [dh, 2013-01-04] - request.headers["Content-Length"] = request.body.bytesize.to_s - request end