Skip to content

Commit a15570d

Browse files
committed
Merge branch 'pr/41' into feature/marketplace-api
2 parents 0cf355e + 55a819e commit a15570d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/core/contentstackHTTPClient.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import axios from 'axios'
12
import clonedeep from 'lodash/cloneDeep'
23
import Qs from 'qs'
3-
import axios from 'axios'
4-
import { isHost } from './Util'
54
import { ConcurrencyQueue } from './concurrency-queue'
5+
import { isHost } from './Util'
66

77
export default function contentstackHttpClient (options) {
88
const defaultConfig = {
@@ -70,7 +70,7 @@ export default function contentstackHttpClient (options) {
7070
delete params.query
7171
var qs = Qs.stringify(params, { arrayFormat: 'brackets' })
7272
if (query) {
73-
qs = qs + `&query=${encodeURI(JSON.stringify(query))}`
73+
qs = qs + `&query=${encodeURIComponent(JSON.stringify(query))}`
7474
}
7575
params.query = query
7676
return qs

0 commit comments

Comments
 (0)