fix(search): URI encode search queries to prevent 400s

This commit is contained in:
Ben Gotow 2015-12-07 10:37:22 -08:00
parent d95cb45147
commit dc2d83b08b

View file

@ -56,7 +56,7 @@ class SearchView extends ModelView
NylasAPI.makeRequest
method: 'GET'
path: "/threads/search?q=#{@_query}"
path: "/threads/search?q=#{encodeURIComponent(@_query)}"
accountId: @_accountId
json: true
returnsModel: false