File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ def self.get_method(request)
3333
3434 def self . get_headers ( request )
3535 begin
36- request . headers . to_h
36+ # Note: At the moment we're filtering out everything but user-agent since ruby's payload is way too big
37+ { 'user-agent' => request . env [ 'HTTP_USER_AGENT' ] }
3738 rescue StandardError
3839 nil
3940 end
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ def self.get_method(request)
3636 def self . get_headers ( request )
3737 begin
3838 # Note: At the moment we're filtering out everything but user-agent since ruby's payload is way too big
39- { " user-agent" => request . headers [ 'HTTP_USER_AGENT' ] }
39+ { ' user-agent' => request . env [ 'HTTP_USER_AGENT' ] }
4040 rescue StandardError
4141 nil
4242 end
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ def self.get_method(request)
3434 def self . get_headers ( request )
3535 begin
3636 # Note: At the moment we're filtering out everything but user-agent since ruby's payload is way too big
37- { " user-agent" => request . env [ 'HTTP_USER_AGENT' ] }
37+ { ' user-agent' => request . env [ 'HTTP_USER_AGENT' ] }
3838 rescue StandardError
3939 nil
4040 end
You can’t perform that action at this time.
0 commit comments