]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] GPT plugin: explicitly set POST method for API requests
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 26 Jan 2026 16:40:19 +0000 (16:40 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 26 Jan 2026 16:40:19 +0000 (16:40 +0000)
commitd3edf80082ddfd8f3010da5e5aaf7bdece04226e
treee378fc22fb9bf0cc251aab1946e4a64a69634f11
parentc4cf9af1dee6c3801765ed7801e391f0a102c5b1
[Fix] GPT plugin: explicitly set POST method for API requests

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.
src/plugins/lua/gpt.lua