mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 02:03:07 +08:00
fix(search): URI encode search queries to prevent 400s
This commit is contained in:
parent
d95cb45147
commit
dc2d83b08b
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ class SearchView extends ModelView
|
||||||
|
|
||||||
NylasAPI.makeRequest
|
NylasAPI.makeRequest
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
path: "/threads/search?q=#{@_query}"
|
path: "/threads/search?q=#{encodeURIComponent(@_query)}"
|
||||||
accountId: @_accountId
|
accountId: @_accountId
|
||||||
json: true
|
json: true
|
||||||
returnsModel: false
|
returnsModel: false
|
||||||
|
|
Loading…
Reference in a new issue