moremind commented on code in PR #4975:
URL: https://github.com/apache/shenyu/pull/4975#discussion_r1293598313
##########
shenyu-admin/src/main/java/org/apache/shenyu/admin/utils/HttpUtils.java:
##########
@@ -375,6 +376,15 @@ private void addHeader(final Request.Builder builder,
final Map<String, String>
}
}
+ private boolean isJsonRequest(final Map<String, String> headers) {
+ try {
+ return
MEDIA_TYPE_JSON.equals(MediaType.parse(headers.get("Content-Type")));
+ } catch (Exception e) {
+ System.err.println(e);
Review Comment:
```java
log.error("parse http client json request error=", e);
return false;
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]