Skip to content

Commit 579aa0e

Browse files
committed
Fixing a bug with cookie code generation
1 parent abdbfab commit 579aa0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/computate/frFR/java/EcrireApiClasse.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2187,7 +2187,7 @@ public void ecrireGenApiServiceImpl2(String classeLangueNom) throws Exception {
21872187
tl(6, "JsonObject params = new JsonObject();");
21882188
tl(6, "params.put(\"body\", ", i18nGlobale.getString(I18n.var_requeteSite), ".getJsonObject());");
21892189
tl(6, "params.put(\"path\", new JsonObject());");
2190-
tl(6, "params.put(\"cookie\", ", i18nGlobale.getString(I18n.var_requeteService), ".getParams().getJsonObject(\"cookie\"));");
2190+
tl(6, "params.put(\"cookie\", ", i18nGlobale.getString(I18n.var_requeteSite), ".get", i18nGlobale.getString(I18n.var_RequeteService), "().getParams().getJsonObject(\"cookie\"));");
21912191
tl(6, "params.put(\"header\", ", i18nGlobale.getString(I18n.var_requeteSite), ".get", i18nGlobale.getString(I18n.var_RequeteService), "().getParams().getJsonObject(\"header\"));");
21922192
tl(6, "params.put(\"form\", new JsonObject());");
21932193
tl(6, "JsonObject query = new JsonObject();");
@@ -4798,7 +4798,7 @@ public void ecrireGenApiServiceImpl3(String classeLangueNom) throws Exception {
47984798
tl(4, "CompositeFuture.all(futures).onSuccess(b -> {");
47994799
tl(5, "JsonObject params = new JsonObject();");
48004800
tl(5, "params.put(\"body\", new JsonObject());");
4801-
tl(5, "params.put(\"cookie\", ", i18nGlobale.getString(I18n.var_requeteService), ".getParams().getJsonObject(\"cookie\"));");
4801+
tl(5, "params.put(\"cookie\", ", i18nGlobale.getString(I18n.var_requeteSite), ".get", i18nGlobale.getString(I18n.var_RequeteService), "().getParams().getJsonObject(\"cookie\"));");
48024802
tl(5, "params.put(\"header\", ", i18nGlobale.getString(I18n.var_requeteSite), ".get", i18nGlobale.getString(I18n.var_RequeteService), "().getParams().getJsonObject(\"header\"));");
48034803
tl(5, "params.put(\"form\", new JsonObject());");
48044804
tl(5, "params.put(\"path\", new JsonObject());");

0 commit comments

Comments
 (0)