mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Fix OpenSearch response crash (#1400)
This commit is contained in:
parent
82099de55b
commit
5a4faa0367
1 changed files with 4 additions and 3 deletions
|
|
@ -46,6 +46,7 @@ proc createSearchRouter*(cfg: Config) =
|
||||||
redirect("/search?f=tweets&q=" & encodeUrl("#" & @"hash"))
|
redirect("/search?f=tweets&q=" & encodeUrl("#" & @"hash"))
|
||||||
|
|
||||||
get "/opensearch":
|
get "/opensearch":
|
||||||
let url = getUrlPrefix(cfg) & "/search?f=tweets&q="
|
let
|
||||||
resp Http200, {"Content-Type": "application/opensearchdescription+xml"},
|
url = getUrlPrefix(cfg) & "/search?f=tweets&q="
|
||||||
generateOpenSearchXML(cfg.title, cfg.hostname, url)
|
headers = {"Content-Type": "application/opensearchdescription+xml"}
|
||||||
|
resp Http200, headers, generateOpenSearchXML(cfg.title, cfg.hostname, url)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue