You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by he...@apache.org on 2022/08/22 07:27:04 UTC
[commons-jexl] branch master updated: JEXL-379: fix request header in test code;
This is an automated email from the ASF dual-hosted git repository.
henrib pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jexl.git
The following commit(s) were added to refs/heads/master by this push:
new 384aa69d JEXL-379: fix request header in test code;
384aa69d is described below
commit 384aa69dc37626e3767740715e1982fc9e195cb2
Author: henrib <he...@apache.org>
AuthorDate: Mon Aug 22 09:27:00 2022 +0200
JEXL-379: fix request header in test code;
---
src/test/java/org/apache/commons/jexl3/ScriptTest.java | 2 +-
src/test/scripts/httpPost.jexl | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/test/java/org/apache/commons/jexl3/ScriptTest.java b/src/test/java/org/apache/commons/jexl3/ScriptTest.java
index 0cc79c75..7e20367c 100644
--- a/src/test/java/org/apache/commons/jexl3/ScriptTest.java
+++ b/src/test/java/org/apache/commons/jexl3/ScriptTest.java
@@ -194,7 +194,7 @@ public class ScriptTest extends JexlTestCase {
con.setRequestProperty("Accept", "application/json");
// send data
if ( jsonData != null ) {
- con.setRequestProperty("Content-Type", "application/json; utf-8");
+ con.setRequestProperty("Content-Type", "application/json");
con.setDoOutput(true);
OutputStream outputStream = con.getOutputStream();
diff --git a/src/test/scripts/httpPost.jexl b/src/test/scripts/httpPost.jexl
index 7c6bbe6b..083e4ada 100644
--- a/src/test/scripts/httpPost.jexl
+++ b/src/test/scripts/httpPost.jexl
@@ -28,7 +28,7 @@
// send data
if (jsonData != null) {
- con.setRequestProperty("Content-Type", "application/json; utf-8");
+ con.setRequestProperty("Content-Type", "application/json");
con.setDoOutput(true);
let outputStream = con.getOutputStream();
let input = jsonData.getBytes("utf-8");