Skip to content

Commit

Permalink
Merge pull request #65 from leklund/remove_uri_escape
Browse files Browse the repository at this point in the history
use URI.encode_www_form_component instead of URI.escape
  • Loading branch information
chen-anders authored Nov 27, 2023
2 parents 80469ef + 78779b3 commit 6a2fe56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nsq/discovery.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def get_nsqds(lookupd, topic = nil)
uri.query = "ts=#{Time.now.to_i}"
if topic
uri.path = '/lookup'
uri.query += "&topic=#{URI.escape(topic)}"
uri.query += "&topic=#{URI.encode_www_form_component(topic)}"
else
uri.path = '/nodes'
end
Expand Down

0 comments on commit 6a2fe56

Please sign in to comment.