We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0cf355e + 55a819e commit a15570dCopy full SHA for a15570d
lib/core/contentstackHTTPClient.js
@@ -1,8 +1,8 @@
1
+import axios from 'axios'
2
import clonedeep from 'lodash/cloneDeep'
3
import Qs from 'qs'
-import axios from 'axios'
4
-import { isHost } from './Util'
5
import { ConcurrencyQueue } from './concurrency-queue'
+import { isHost } from './Util'
6
7
export default function contentstackHttpClient (options) {
8
const defaultConfig = {
@@ -70,7 +70,7 @@ export default function contentstackHttpClient (options) {
70
delete params.query
71
var qs = Qs.stringify(params, { arrayFormat: 'brackets' })
72
if (query) {
73
- qs = qs + `&query=${encodeURI(JSON.stringify(query))}`
+ qs = qs + `&query=${encodeURIComponent(JSON.stringify(query))}`
74
}
75
params.query = query
76
return qs
0 commit comments