1. iz match fixed

2. redirect res content add "text/html; charset=utf-8"
This commit is contained in:
q committed 2025-08-12 13:29:59 +08:00
1 parent 1d30716aa6
commit 8b57d04a2e
2 files changed
+8 -7

No files matched your search

@@ -12,7 +12,8 @@ import static io.vertx.core.http.HttpHeaders.CONTENT_TYPE;
public class ResponseUtil {
public static void redirect(HttpServerResponse response, String url) {
response.putHeader(HttpHeaders.LOCATION, url).setStatusCode(302).end();
response.putHeader(CONTENT_TYPE, "text/html; charset=utf-8")
.putHeader(HttpHeaders.LOCATION, url).setStatusCode(302).end();
}
public static void redirect(HttpServerResponse response, String url, Promise<?> promise) {