ruby - Why is this value getting added to the end of a my variable? -
why value <redacted> added end of variable two when running #get_digest?
here's code looks like:
require 'digest' require 'uri' class <redacted> def request_to_string(args = {}) encoded_search_query = uri.encode_www_form(args[:<redacted>]) "#{<redacted>}#{<redacted>}" end <redacted> end every time run #<redacted> value of two changes shouldn't be. seems going wrong?
you're modifying string instance in args[:request_string] directly.
change instead:
str = "#{args[:request_string]}"
Comments
Post a Comment