mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 05:18:58 +00:00
(search) Hopefully fix race condition that leaves the response with no Content-type header
This commit is contained in:
parent
67195592c6
commit
98983c1015
@ -50,6 +50,8 @@ public class SearchSiteInfoService {
|
|||||||
String domainName = request.params("site");
|
String domainName = request.params("site");
|
||||||
String view = request.queryParamOrDefault("view", "info");
|
String view = request.queryParamOrDefault("view", "info");
|
||||||
|
|
||||||
|
response.type("text/html");
|
||||||
|
|
||||||
if (null == domainName || domainName.isBlank()) {
|
if (null == domainName || domainName.isBlank()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user