From 6469599bca35a7198efb55d647411448a086e307 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Tue, 20 Feb 2024 22:51:31 -0300 Subject: [PATCH] fix(basic.gblib): POST/PUT bug fix. @othonlima --- packages/basic.gblib/services/SystemKeywords.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/basic.gblib/services/SystemKeywords.ts b/packages/basic.gblib/services/SystemKeywords.ts index 7d08384cc..99fd136d3 100644 --- a/packages/basic.gblib/services/SystemKeywords.ts +++ b/packages/basic.gblib/services/SystemKeywords.ts @@ -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;