Skip to content

Commit

Permalink
fix: mediaType bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed May 21, 2023
1 parent 55a4313 commit 24bf931
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 24bf931

Please sign in to comment.