From 10fd2beae36d5fd93be20876df08385f02343bc5 Mon Sep 17 00:00:00 2001 From: Matthew Date: Wed, 7 Aug 2024 15:42:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E8=AF=B7=E6=B1=82=E7=9A=84co?= =?UTF-8?q?ntent-type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mpmaster/src/main/java/com/xypower/mpmaster/AppMaster.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mpmaster/src/main/java/com/xypower/mpmaster/AppMaster.java b/mpmaster/src/main/java/com/xypower/mpmaster/AppMaster.java index 1a6e47e2..98fdf309 100644 --- a/mpmaster/src/main/java/com/xypower/mpmaster/AppMaster.java +++ b/mpmaster/src/main/java/com/xypower/mpmaster/AppMaster.java @@ -271,6 +271,9 @@ public class AppMaster { httpURLConnection = (HttpURLConnection) url.openConnection(); httpURLConnection.setConnectTimeout(15000); httpURLConnection.setReadTimeout(15000); + + httpURLConnection.setRequestProperty("Content-Type", "application/json"); + try { httpURLConnection.setRequestMethod("POST"); } catch (Exception ex) {