diff --git a/lib/discourse_hub.rb b/lib/discourse_hub.rb index a10f3a1b65b..73935e1acf3 100644 --- a/lib/discourse_hub.rb +++ b/lib/discourse_hub.rb @@ -42,8 +42,9 @@ module DiscourseHub def self.singular_action(action, rel_url, params={}) JSON.parse(Excon.send(action, "#{hub_base_url}#{rel_url}", - body: params.to_query, - headers: { 'Referer' => referer, 'Accept' => accepts.join(', ') } + headers: { 'Referer' => referer, 'Accept' => accepts.join(', ') }, + :query => params, + :omit_default_port => true ).body) end