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