mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-04-19 19:21:18 +00:00
(Sonar) Fixed finding: "Utility classes should not have public constructors"
This commit is contained in:
parent
32b3cfca41
commit
88338b4dbc
@ -4,6 +4,9 @@ import jakarta.servlet.http.HttpServletRequest;
|
||||
|
||||
public class UrlUtils {
|
||||
|
||||
private UrlUtils() {
|
||||
}
|
||||
|
||||
public static String getOrigin(HttpServletRequest request) {
|
||||
String scheme = request.getScheme(); // http or https
|
||||
String serverName = request.getServerName(); // localhost
|
||||
|
Loading…
x
Reference in New Issue
Block a user