fix(http): use params without RequestOptions (#14101)

`params` has been introduced in 4.0.0-beta.0

Before:

    http.get(url, new RequestOptions({params: searchParams}))

After:

    http.get(url, {params: searchParams})

Fixes #14100

PR Close #14101
This commit is contained in:
cexbrayat
2017-01-25 16:42:30 +01:00
committed by Miško Hevery
parent c87c3bec93
commit 5f2b3173d7
2 changed files with 14 additions and 2 deletions

View File

@ -28,6 +28,7 @@ function mergeOptions(
method: providedOpts.method || method,
url: providedOpts.url || url,
search: providedOpts.search,
params: providedOpts.params,
headers: providedOpts.headers,
body: providedOpts.body,
withCredentials: providedOpts.withCredentials,