提交 7c74750d 编写于 作者: 智布道's avatar 智布道 👁

👽 Updating code due to external API changes.

上级 bd23cd9c
......@@ -75,6 +75,17 @@ public class RequestUtil {
return getHeader("Referer", request);
}
/**
* Get subdomain name
*
* @param request current HTTP request
* @return string
*/
public static String getFullDomainName(HttpServletRequest request) {
StringBuffer url = request.getRequestURL();
return url.delete(url.length() - request.getRequestURI().length(), url.length()).toString();
}
/**
* Get the User-Agent of the current HTTP request
*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册