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)
111
111
SocketError
112
112
] . freeze
113
113
114
- # Create a Farady compatible adapter.
114
+ # Create a Faraday compatible adapter.
115
115
#
116
116
# @parameter timeout [Integer] The timeout for requests.
117
117
# @parameter options [Hash] Additional options to pass to the underlying Async::HTTP::Client.
@@ -181,6 +181,12 @@ def perform_request(env)
181
181
end
182
182
183
183
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
+
184
190
headers = ::Protocol ::HTTP ::Headers [ headers ]
185
191
end
186
192
You can’t perform that action at this time.
0 commit comments