From 24bf931ca84cb2920589be16ea4061e132dfe67e Mon Sep 17 00:00:00 2001 From: Eason <291028775@qq.com> Date: Sun, 21 May 2023 18:34:38 +0800 Subject: [PATCH] fix: mediaType bugs --- .../org/cloud/sonic/agent/transport/TransportController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/cloud/sonic/agent/transport/TransportController.java b/src/main/java/org/cloud/sonic/agent/transport/TransportController.java index f7e66228..25f641d1 100755 --- a/src/main/java/org/cloud/sonic/agent/transport/TransportController.java +++ b/src/main/java/org/cloud/sonic/agent/transport/TransportController.java @@ -18,7 +18,7 @@ public class TransportController { @Autowired private RoutingDelegate routingDelegate; - @RequestMapping(value = "/**", method = {RequestMethod.GET, RequestMethod.POST, RequestMethod.PUT, RequestMethod.DELETE}, produces = MediaType.TEXT_PLAIN_VALUE) + @RequestMapping(value = "/**", method = {RequestMethod.GET, RequestMethod.POST, RequestMethod.PUT, RequestMethod.DELETE}, produces = MediaType.ALL_VALUE) public ResponseEntity catchAll(HttpServletRequest request, HttpServletResponse response) { System.out.println(request.getRequestURI()); return routingDelegate.redirect(request, response, "http://localhost:" + request.getRequestURI().replace(DELEGATE_PREFIX + "/", ""), request.getRequestURI());