(search) Hopefully fix race condition that leaves the response with no Content-type header

This commit is contained in:
Viktor Lofgren 2023-12-05 13:52:36 +01:00
parent 67195592c6
commit 98983c1015

View File

@ -50,6 +50,8 @@ public class SearchSiteInfoService {
String domainName = request.params("site");
String view = request.queryParamOrDefault("view", "info");
response.type("text/html");
if (null == domainName || domainName.isBlank()) {
return null;
}