Auto-detect Content-Type and Accept headers if enabled

Add AutoDetectHeaders option to RecAction config and handler. When enabled, automatically set Content-Type based on body content (JSON or XML) and default Accept to application/json if missing. Log warnings when headers are auto-detected. Improves robustness and makes header detection configurable.
This commit is contained in:
2026-04-17 15:13:33 +02:00
parent 17d40817f2
commit 28a4146069
3 changed files with 23 additions and 2 deletions

View File

@@ -3,4 +3,5 @@
public class RecActionOptions
{
public bool UseHttp1ForNtlm { get; set; } = false;
public bool AutoDetectHeaders { get; set; } = false;
}