From 57a33f8461963713dafb29cd6015a13b83fec148 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 7d08384c..99fd136d 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;