Skip to content

Commit 3f7af92

Browse files
committed
Added qs in httpService.ts to support nested objects in query string
1 parent deaf957 commit 3f7af92

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

reactjs/src/services/httpService.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@ import axios from 'axios';
22
import AppConsts from './../lib/appconst';
33
import { Modal } from 'antd';
44
import { L } from 'src/lib/abpUtility';
5+
const qs = require('qs');
56

67
const http = axios.create({
78
baseURL: AppConsts.remoteServiceBaseUrl,
89
timeout: 30000,
10+
paramsSerializer: function(params) {
11+
return qs.stringify(params, {
12+
encode: false,
13+
});
14+
},
915
});
1016

1117
http.interceptors.request.use(

0 commit comments

Comments
 (0)