fix(basic.gblib): POST/PUT bug fix. @othonlima
This commit is contained in:
parent
83b10ee072
commit
de37389b41
1 changed files with 2 additions and 2 deletions
|
@ -1864,7 +1864,7 @@ export class SystemKeywords {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (typeof (data) === 'object') {
|
if (typeof (data) === 'object') {
|
||||||
options['json'] = data;
|
options['body'] = JSON.stringify(data);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
options['body'] = data;
|
options['body'] = data;
|
||||||
|
@ -1898,7 +1898,7 @@ export class SystemKeywords {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (typeof (data) === 'object') {
|
if (typeof (data) === 'object') {
|
||||||
options['json'] = data;
|
options['body'] = JSON.stringify(data);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
options['body'] = data;
|
options['body'] = data;
|
||||||
|
|
Loading…
Add table
Reference in a new issue