Skip to content

Commit 8835dae

Browse files
committed
Switch to net/http header handling
1 parent 35b217b commit 8835dae

File tree

1 file changed

+3
-2
lines changed
  • lib/metasploit/framework/data_service/remote/http

1 file changed

+3
-2
lines changed

lib/metasploit/framework/data_service/remote/http/core.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,9 @@ def build_request(request, data_hash)
212212
end
213213

214214
if (!@headers.nil? && !@headers.empty?)
215-
#TODO: This probably needs to be converted for the net/http client
216-
request['headers'] = @headers
215+
@headers.each do |key, value|
216+
request[key] = value
217+
end
217218
end
218219

219220
request

0 commit comments

Comments
 (0)