From 1c84556edd60a3e2eb7e1bb43fd889032980bd1d Mon Sep 17 00:00:00 2001 From: Arjen Oosterkamp Date: Thu, 2 Mar 2023 09:05:17 +0100 Subject: [PATCH] Fix DELETE requests --- lib/reverse_proxy/client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reverse_proxy/client.rb b/lib/reverse_proxy/client.rb index 7189ed7..84e4f7d 100644 --- a/lib/reverse_proxy/client.rb +++ b/lib/reverse_proxy/client.rb @@ -65,9 +65,9 @@ module ReverseProxy && source_request.body source_request.body.rewind target_request.body_stream = source_request.body + target_request.content_length = source_request.content_length || 0 end - target_request.content_length = source_request.content_length || 0 target_request.content_type = source_request.content_type if source_request.content_type # Hold the response here