lib/truemail/client/http.rb in truemail-client-0.2.1 vs lib/truemail/client/http.rb in truemail-client-0.3.0
- old
+ new
@@ -42,10 +42,10 @@
def request_uri
URI::HTTP.build(
path: endpoint,
query: uri_params.empty? ? nil : URI.encode_www_form(uri_params)
- ).request_uri.gsub(/%40/, '@') # TODO: should be removed after new Truemail server release with encoding uri param values
+ ).request_uri
end
def uri
@uri ||= URI("#{secure_connection ? 'https' : 'http'}://#{host}:#{port}#{request_uri}")
end