From: Andrew Lewis Date: Thu, 23 Feb 2017 16:54:15 +0000 (+0200) Subject: [Minor] Use fake User-Agent in URL redirector plugin X-Git-Tag: 1.5.0~43^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=df46026d547f78559e8de0ea50719a626055cea1;p=rspamd.git [Minor] Use fake User-Agent in URL redirector plugin --- diff --git a/src/plugins/lua/url_redirector.lua b/src/plugins/lua/url_redirector.lua index cf90b8de7..208bde614 100644 --- a/src/plugins/lua/url_redirector.lua +++ b/src/plugins/lua/url_redirector.lua @@ -89,6 +89,9 @@ local function resolve_cached(task, orig_url, url, key, param, ntries) end rspamd_http.request{ + headers = { + ['User-Agent'] = 'Mozilla/5.0 (Maemo; Linux armv7l; rv:10.0.1) Gecko/20100101 Firefox/10.0.1 Fennec/10.0.1', + }, url = url, task = task, method = 'head',