lib/nylas/resources/auth.rb in nylas-6.0.0 vs lib/nylas/resources/auth.rb in nylas-6.0.1
- old
+ new
@@ -149,10 +149,10 @@
# @param config [Hash] Configuration for the query.
# @return [URI] List of components for the authentication URL.
def url_auth_builder(config)
builder = URI.parse(api_uri)
builder.path = "/v3/connect/auth"
- builder.query = URI.encode_www_form(build_query(config)).gsub!("+", "%20")
+ builder.query = URI.encode_www_form(build_query(config)).gsub(/\+/, "%20")
builder
end
# Builds the query.