Fixes #5859
Some API providers (like Ollama) strictly require POST method on their
endpoints and return 405 Method Not Allowed for GET requests. While
rspamd_http auto-detects POST when a body is present, explicitly setting
the method ensures correct behavior in all cases.
upstream = settings.upstreams:get_upstream_round_robin()
local http_params = {
url = settings.url,
+ method = 'post',
mime_type = 'application/json',
timeout = settings.timeout,
log_obj = task,
upstream = settings.upstreams:get_upstream_round_robin()
local http_params = {
url = settings.url,
+ method = 'post',
mime_type = 'application/json',
timeout = settings.timeout,
log_obj = task,