From 99c4ed7dbc076ab1257100a396732f19b0e128c0 Mon Sep 17 00:00:00 2001 From: Qstick Date: Thu, 3 Jun 2021 19:40:53 -0400 Subject: [PATCH] Fixed: Host not set for UI Search --- src/Prowlarr.Api.V1/Search/SearchController.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Prowlarr.Api.V1/Search/SearchController.cs b/src/Prowlarr.Api.V1/Search/SearchController.cs index 3af6ba4ac..fff3bb3cc 100644 --- a/src/Prowlarr.Api.V1/Search/SearchController.cs +++ b/src/Prowlarr.Api.V1/Search/SearchController.cs @@ -97,7 +97,15 @@ namespace Prowlarr.Api.V1.Search { try { - var request = new NewznabRequest { q = query, source = "Prowlarr", t = "search", cat = string.Join(",", categories), server = Request.GetServerUrl() }; + var request = new NewznabRequest + { + q = query, source = "Prowlarr", + t = "search", + cat = string.Join(",", categories), + server = Request.GetServerUrl(), + host = Request.GetHostName() + }; + var result = await _nzbSearhService.Search(request, indexerIds, true); var decisions = result.Releases;