From 9c17aa28446408e5a2aad6610bc6513567461310 Mon Sep 17 00:00:00 2001
From: MidCoard <2624646185@qq.com>
Date: Thu, 28 Mar 2024 00:22:11 +0800
Subject: [PATCH] feat: update poi to 5.2.5 fix: NetworkHandler media type
---
pom.xml | 2 +-
.../top/focess/qq/api/util/network/NetworkHandler.java | 8 +++++---
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 9b871b6..1510415 100644
--- a/pom.xml
+++ b/pom.xml
@@ -25,7 +25,7 @@
8
8
2.16.0
- 5.2.2
+ 5.2.5
1.4.14
3.21.3
9+181-r4173-1
diff --git a/src/main/java/top/focess/qq/api/util/network/NetworkHandler.java b/src/main/java/top/focess/qq/api/util/network/NetworkHandler.java
index 3b05703..3b83a58 100644
--- a/src/main/java/top/focess/qq/api/util/network/NetworkHandler.java
+++ b/src/main/java/top/focess/qq/api/util/network/NetworkHandler.java
@@ -13,7 +13,6 @@
import top.focess.util.network.HttpResponse;
import java.util.Map;
-import java.util.Objects;
/**
* This is a network util class.
@@ -23,9 +22,12 @@ public class NetworkHandler {
private static final Logger LOGGER = LoggerFactory.getLogger(NetworkHandler.class);
@NonNull
- public static final MediaType JSON = Objects.requireNonNull(MediaType.parse("application/json; charset=utf-8"));
+ public static final MediaType JSON = top.focess.util.network.NetworkHandler.JSON;
@NonNull
- public static final MediaType TEXT = Objects.requireNonNull(MediaType.parse("application/x-www-form-urlencoded; charset=utf-8"));
+ public static final MediaType TEXT = top.focess.util.network.NetworkHandler.TEXT;
+ @NonNull
+ public static final MediaType URL_ENCODED = top.focess.util.network.NetworkHandler.URL_ENCODED;
+
/**
* The plugin