File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/edu/kit/scc/dem/wapsrv/app Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1313import org .springframework .beans .factory .annotation .Value ;
1414import org .springframework .context .annotation .Configuration ;
1515import org .springframework .util .PathMatcher ;
16+ import org .springframework .util .StringUtils ;
1617import org .springframework .web .servlet .config .annotation .CorsRegistry ;
1718import org .springframework .web .servlet .config .annotation .PathMatchConfigurer ;
1819import org .springframework .web .servlet .config .annotation .WebMvcConfigurationSupport ;
@@ -825,7 +826,7 @@ public boolean isRootWapUrl(String url){
825826 * @return The base url
826827 */
827828 public String getBaseUrl (){
828- if (proxiedBasePath != null && proxiedBasePath != "" ) return proxiedBasePath ;
829+ if (StringUtils . hasText ( proxiedBasePath )) return proxiedBasePath ;
829830 if (enableHttps ){
830831 if (wapPort == 443 ){
831832 return "https://" + hostname + contextPath ;
You can’t perform that action at this time.
0 commit comments