File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ def self.setup_parallel_manager(**options)
111111 SocketError
112112 ] . freeze
113113
114- # Create a Farady compatible adapter.
114+ # Create a Faraday compatible adapter.
115115 #
116116 # @parameter timeout [Integer] The timeout for requests.
117117 # @parameter options [Hash] Additional options to pass to the underlying Async::HTTP::Client.
@@ -181,6 +181,12 @@ def perform_request(env)
181181 end
182182
183183 if headers = env . request_headers
184+ # Ignore Content-Length if given, it will be set for us later anyway (lowercased)
185+ if headers . has_key? ( "Content-Length" )
186+ headers = headers . dup
187+ headers . delete ( "Content-Length" )
188+ end
189+
184190 headers = ::Protocol ::HTTP ::Headers [ headers ]
185191 end
186192
You can’t perform that action at this time.
0 commit comments